From: Azat Khuzhin Date: Sun, 10 Jul 2022 12:10:20 +0000 (+0300) Subject: ci: add ability skip specific workflow X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc24a2990d922c1b40e7e0a1705c528d7f509341;p=libevent ci: add ability skip specific workflow Public CI workers has pretty high load, and sometimes you need to test only specific workflow, i.e. windows. So let's add ability to limit which workflow should be run. --- diff --git a/.github/workflows/abi.yml b/.github/workflows/abi.yml index e9fa049d..450f502b 100644 --- a/.github/workflows/abi.yml +++ b/.github/workflows/abi.yml @@ -16,7 +16,7 @@ jobs: ## due to even public registry require some authentication: ## - https://github.community/t5/GitHub-Actions/docker-pull-from-public-GitHub-Package-Registry-fail-with-quot/td-p/32782/page/5 #container: docker.pkg.github.com/azat/docker-images/lvc-debian - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/abi skip')" strategy: fail-fast: false diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f23424dc..a090084d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,7 +15,7 @@ on: jobs: linux: runs-on: ubuntu-18.04 - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/coverage skip')" steps: - uses: actions/checkout@v2.0.0 - name: Cache diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index d7d4b775..14c41af7 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -9,7 +9,7 @@ on: jobs: Doxygen: runs-on: ubuntu-18.04 - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/doxygen skip')" strategy: fail-fast: false diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index f11f382f..49ecaecd 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -21,7 +21,7 @@ on: jobs: cmake: runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/linux skip') && !contains(github.event.head_commit.message, 'ci/linux/cmake skip')" strategy: fail-fast: false matrix: @@ -148,7 +148,7 @@ jobs: autotools: runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/linux skip') && !contains(github.event.head_commit.message, 'ci/linux/autotools skip')" strategy: fail-fast: false matrix: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 012922bd..6e3204fe 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,7 +21,7 @@ on: jobs: cmake: runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/macos skip') && !contains(github.event.head_commit.message, 'ci/macos/cmake skip')" strategy: fail-fast: false matrix: @@ -111,7 +111,7 @@ jobs: autotools: runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/macos skip') && !contains(github.event.head_commit.message, 'ci/macos/autotools skip')" strategy: fail-fast: false matrix: diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index b7e5049c..d4eb6b1c 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -21,7 +21,7 @@ on: jobs: autotools: runs-on: windows-2019 - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/mingw skip') && !contains(github.event.head_commit.message, 'ci/mingw/autotools skip')" strategy: fail-fast: false matrix: @@ -93,7 +93,7 @@ jobs: cmake: runs-on: windows-2019 - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/mingw skip') && !contains(github.event.head_commit.message, 'ci/mingw/cmake skip')" strategy: fail-fast: false matrix: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 22aed755..0cbc324b 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -21,7 +21,7 @@ on: jobs: vs2019: runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/windows skip')" strategy: fail-fast: false matrix: