From 4146897e3cadf35000dc7322891c830b7124cdbc Mon Sep 17 00:00:00 2001 From: breadbyte <14045257+breadbyte@users.noreply.github.com> Date: Fri, 19 Apr 2024 15:41:40 +0800 Subject: [PATCH] Update Github Actions to actually skip builds We used to only check for "skip ci" specifically, so all other amalgamations of skip-ci, skip-build, etc still create a new build. this changes the build check to check for skip, SKIP or Skip instead to catch all of them. --- .github/workflows/build-and-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 983fc3a2..4bfaa2e9 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -200,7 +200,7 @@ jobs: runs-on: ubuntu-latest strategy: fail-fast: true - if: ${{ !contains(github.event.head_commit.message, 'skip ci') }} + if: ${{ !contains(github.event.head_commit.message, 'skip') || !contains(github.event.head_commit.message, 'SKIP') !contains(github.event.head_commit.message, 'Skip')}} steps: - name: dummy action - run: "echo 'dummy action'" + run: "echo 'dummy action that checks if the build is to be skipped, if it is, this action does not run to break the entire build action'"