Skip to content

Commit 9f223f2

Browse files
julienldclaude
andcommitted
fix(ci): dereference annotated tags in hotfix validation
Use ^{commit} to get the commit SHA from annotated tags, otherwise git rev-parse returns the tag object SHA which causes comparison failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent eb222dd commit 9f223f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/pr-validate-hotfix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
exit 0
3434
fi
3535
36-
STABLE_COMMIT=$(git rev-parse stable)
36+
# Use ^{commit} to dereference annotated tags to the commit SHA
37+
STABLE_COMMIT=$(git rev-parse stable^{commit})
3738
STABLE_TAG_NAME=$(git describe --tags --exact-match $STABLE_COMMIT 2>/dev/null || echo "stable")
3839
echo "Stable tag points to: $STABLE_TAG_NAME ($STABLE_COMMIT)"
3940

0 commit comments

Comments
 (0)