Skip to content

Commit

Permalink
feat: add step to check for release commit message and skip the workf…
Browse files Browse the repository at this point in the history
…low run
  • Loading branch information
BernhardFuchs committed Nov 8, 2024
1 parent 5fcd1e4 commit 73859b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ on:

jobs:

check-commit-message:
runs-on: ubuntu-latest
steps:
- name: Check commit message
id: check
if: "contains(github.event.head_commit.message, '[ci] Set') && contains(github.event.head_commit.message, '-SNAPSHOT')"
run: |
echo "Skipping workflow for version update commit"
exit 78 # neutral exit code
build-context:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 73859b0

Please sign in to comment.