Skip to content

Commit

Permalink
Add skip condition in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne committed Sep 20, 2024
1 parent 96e897b commit ac1b59e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/run-compile-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
check_compilation:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest

steps:
Expand All @@ -21,5 +22,5 @@ jobs:

- name: Run SML Compilation Check
run: |
chmod +x ./check_compilation.sh
./check_compilation.sh
chmod +x ./test-compile
./test-compile
1 change: 1 addition & 0 deletions .github/workflows/run-sml-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
test:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit ac1b59e

Please sign in to comment.