From 5c65d9a414c5a2dcb884bc01e074cc7184675cdf Mon Sep 17 00:00:00 2001 From: Pat Losoponkul Date: Wed, 22 May 2024 13:42:36 +0700 Subject: [PATCH] ci: skip jobs when ci is mark skipped [skip ci] --- .github/workflows/unit-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 065e5a5fcd..8cf96abb76 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -16,6 +16,7 @@ jobs: build-and-unit-tests: name: "Build and unit tests" runs-on: self-hosted + if: "!contains(github.event.head_commit.message, '[skip ci]') || !contains(github.event.head_commit.message, '[ci skip]') || !contains(github.event.head_commit.message, '[no ci]') || !contains(github.event.head_commit.message, '[skip actions]') || !contains(github.event.head_commit.message, '[actions skip]')" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} container: