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.
This commit is contained in:
breadbyte 2024-04-19 15:41:40 +08:00 committed by GitHub
parent d6d0800215
commit 4146897e3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,7 +200,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: true 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: steps:
- name: dummy action - 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'"