Skip to content

Commit 789a7e4

Browse files
pditommasoclaude
andcommitted
Fix release condition to properly check commit messages
- Use join(github.event.commits.*.message, ' ') to check all commit messages in push - This prevents release job from running when [release] is not in commit message 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent b239a1f commit 789a7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
release:
1616
needs: build
17-
if: github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[release]')
17+
if: github.ref == 'refs/heads/master' && contains(join(github.event.commits.*.message, ' '), '[release]')
1818
uses: ./.github/workflows/release.yml
1919
with:
2020
should_release: true

0 commit comments

Comments
 (0)