Skip to content

Commit a2cf6f7

Browse files
committed
ci: fix release skipped on squash merges containing [skip ci] in body
1 parent 3118e45 commit a2cf6f7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ on:
1414

1515
jobs:
1616
release:
17-
# Skip CI-only commits (version bumps) to avoid release loops
18-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
17+
# Skip CI-only commits (version bumps) to avoid release loops.
18+
# Check only the first line (title) — squash merges include [skip ci]
19+
# from intermediate commits in the body, which would falsely skip the release.
20+
if: "!startsWith(github.event.head_commit.message, 'chore: bump version')"
1921
runs-on: ubuntu-latest
2022

2123
permissions:

0 commit comments

Comments
 (0)