fangorn/ex_git_objectstore
public
ref:66017f96d16167506bf72b5fd4cc238aca556e5f
Fix CI release: branch detection and anvil CLI install (#7)
## Summary
Fixes the release step which was skipping on main with "not on main (on HEAD)".
## Root causes
1. **Branch detection**: `git rev-parse --abbrev-ref HEAD` returns `"HEAD"` in CI because the runner checks out a detached HEAD at a specific commit SHA. Fixed by comparing `HEAD` SHA against `origin/main` SHA.
2. **anvil CLI not available**: Docker container doesn't have the anvil binary. Fixed by downloading it from `anvil.fangorn.io/cli/download`.
3. **Idempotency check**: `git tag -l` replaced with `git rev-parse` which is more reliable.
## Test plan
- [x] 560 tests pass
- [ ] Merge to main and verify release step creates tag + Anvil release
SHA:
66017f96d16167506bf72b5fd4cc238aca556e5f
Author:
Anvil <noreply@anvil.fangorn.io>
Date:
2026-04-09 21:05
Parents:
32f9f47
1 files changed
+13
-9
| Type | ||
|---|---|---|
|
|
.anvil.yml | +13 −9 |
|
||