Skip to content

Commit b94a430

Browse files
peppescgclaude
andauthored
ci: fix release tag check (#310)
* ci: fix release tag check * fix: accept conventional commit prefixes in release tag check Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f2c7aa3 commit b94a430

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/create-release-tag.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ jobs:
5959
# Track verification status
6060
VERIFIED=true
6161
62-
# Check 1: Verify commit message matches release pattern
63-
# Squash merge: "Release v1.0.0 (#123)"
62+
# Check 1: Verify commit message contains release version pattern
63+
# Squash merge: "Release v1.0.0 (#123)" or "feat: release v1.0.0 (#123)"
6464
# Merge commit: "Merge pull request #123 from user/release/v1.0.0"
6565
# Direct: "Release v1.0.0"
66-
if [[ "$COMMIT_MSG" =~ ^Release\ v[0-9]+\.[0-9]+\.[0-9]+ ]] || \
66+
if [[ "$COMMIT_MSG" =~ (^|[^a-zA-Z])[Rr]elease\ v[0-9]+\.[0-9]+\.[0-9]+ ]] || \
6767
[[ "$COMMIT_MSG" =~ release/v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
6868
echo "✅ Commit message matches release pattern"
6969
echo "message_verified=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)