From a00601f65139970c2add77ed774b0b4995279d40 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 5 Aug 2021 10:10:51 +0300 Subject: [PATCH] ci: ability to skip any workflow --- .github/workflows/build.yml | 2 +- .github/workflows/lint.yml | 5 +++-- .github/workflows/test.yml | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a10e60d4..e5d8c9a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: build: - if: "!contains(github.event.head_commit.message, '[skip ci]')" + if: "!contains(github.event.head_commit.message, '[skip build]')" name: ${{ matrix.config.name }} runs-on: "macos-10.15" strategy: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e30aefd9..2ed01cf3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,9 +1,10 @@ -name: Lint +name: Lint Code on: [push, pull_request] jobs: - linter: + lint: + if: "!contains(github.event.head_commit.message, '[skip lint]')" runs-on: ubuntu-20.04 steps: - name: Checkout diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 40df011d..03bf9103 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,8 +3,8 @@ name: Test Libraries on: [push, pull_request] jobs: - build: - if: "!contains(github.event.head_commit.message, '[skip ci]')" + test: + if: "!contains(github.event.head_commit.message, '[skip test]')" runs-on: "macos-10.15" steps: - uses: actions/checkout@v1