Commit 24a9df3
Fix release branch resolution picking stale feature branches
git branch -r --contains matches any branch that has the tag commit
as an ancestor, not just the branch it was cut from. Long-lived or
merged branches keep that ancestry indefinitely, so alphabetical
head -n 1 could select the wrong branch (e.g. a stale feature branch
instead of main), which then made the checkout in the Commit changes
step collide with the uncommitted pom.xml version bump.
Switch to git for-each-ref --points-at to match only the branch whose
tip is exactly the tag commit.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 93456df commit 24a9df3
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments