After pushing the pin commit to main, GitHub rejected the immediate v1 tag
force-push with "missing necessary objects", so the release run failed and the
rolling tag stayed on the previous commit. Retry a few times before failing.
Co-authored-by: Bug Fixer <[email protected]>
* ci(pr): grant actions read so the shared PR checks start
go-pr.yaml's CodeQL job asks for actions: read. A reusable workflow cannot ask
for more than its caller grants, so the whole PR run fails at startup with no
jobs. Grant the missing read scope.
* fix(goreleaser): use the cask install_steps stanza
GoReleaser 2.20 fails goreleaser check when homebrew_casks.hooks.post.install is
used: Homebrew deprecated the Ruby postflight stanza in favour of the
declarative steps DSL.
---------
Co-authored-by: Bug Fixer <[email protected]>
The release job moves the rolling v1 tag to the release commit. The
update-action-version job then pins action.yml to the new image in a
later commit. So v1 always pointed at a commit that pinned the
previous image, and "@v1" users ran the previous release.
The job now checks out the released commit, pushes the pin commit with
"git push origin HEAD:main", and moves v1 onto it after that push
succeeds. If main moved during the release, the push fails and v1
stays where it is. The job runs only for main, and a concurrency group
queues overlapping release runs.
Claude-Session: https://claude.ai/code/session_01Qq1gbqQek1Zjtofo4VDRdW
Add update-action-version job that automatically updates action.yml
to reference the specific Docker image version after each release.
This ensures users pinning the action version get the matching Docker
image instead of :latest.