ref:main
Fix CI release: branch detection and anvil CLI install #7
merged
cole.christensen@gmail.com wants to merge
fix/ci-release-branch-detection
into main
No CI
Summary
Fixes the release step which was skipping on main with “not on main (on HEAD)”.
Root causes
- Branch detection:
git rev-parse --abbrev-ref HEADreturns"HEAD"in CI because the runner checks out a detached HEAD at a specific commit SHA. Fixed by comparingHEADSHA againstorigin/mainSHA. - anvil CLI not available: Docker container doesn’t have the anvil binary. Fixed by downloading it from
anvil.fangorn.io/cli/download. - Idempotency check:
git tag -lreplaced withgit rev-parsewhich is more reliable.
Test plan
- 560 tests pass
- Merge to main and verify release step creates tag + Anvil release
Created Apr 09, 2026 at 20:48 UTC
| Merged Apr 09, 2026 at 21:05 UTC
by
cole.christensen@gmail.com