Skip to content

fix(ci): enable homebrew-tap auto-update and keep VERSION in sync#15

Merged
atani merged 1 commit intomainfrom
fix/homebrew-token-name
Apr 18, 2026
Merged

fix(ci): enable homebrew-tap auto-update and keep VERSION in sync#15
atani merged 1 commit intomainfrom
fix/homebrew-token-name

Conversation

@atani
Copy link
Copy Markdown
Owner

@atani atani commented Apr 18, 2026

Summary

Three fixes so brew install atani/tap/gh-attach consistently pulls in the latest release.

  1. Correct secret name. Workflow referenced HOMEBREW_TAP_TOKEN but the repo secret is HOMEBREW_TAP_GITHUB_TOKEN, so the update-homebrew job has been silently failing on every release. Align the reference.
  2. Sync bash VERSION with git tag. Add a workflow step that rewrites bin/gh-attach's VERSION="..." to match the tag the workflow is about to create, so gh-attach --version reports the real version (today v0.7.1 tarball contains VERSION="0.7.0").
  3. Prevent infinite bump loop. Extend the skip condition to also ignore github-actions[bot] commits, otherwise the VERSION-sync push the workflow performs would re-trigger the workflow.

Also bumps VERSION to 0.7.1 manually as a one-time catch-up.

Test plan

  • git diff shows only the three intended changes
  • Next merge to main → workflow runs under github-actions[bot], creates v0.7.2 tarball containing VERSION="0.7.2"
  • homebrew-tap formula auto-updates to v0.7.2 with the corresponding URL/SHA
  • No infinite loop (the chore: bump commit does not re-trigger the workflow)

Three small fixes so brew install atani/tap/gh-attach consistently
pulls in the latest release.

1. Use the correct secret name for the homebrew-tap token. The repo
   secret is HOMEBREW_TAP_GITHUB_TOKEN, but the workflow referenced
   HOMEBREW_TAP_TOKEN, so the homebrew formula update job has been
   silently failing for every release. Align the reference.
2. Sync the bash VERSION string in bin/gh-attach with the tag the
   workflow is about to create. Without this the string drifts behind
   the git tag on every release, so gh-attach --version reports stale
   numbers (noticed 0.7.0 shipped inside the v0.7.1 tarball).
3. Bump VERSION to 0.7.1 manually to catch up with the current tag.
   Extend the skip condition so commits by github-actions[bot] do not
   re-trigger the workflow. Otherwise the VERSION-sync push would cause
   an infinite bump loop.
@atani atani merged commit ed39fd2 into main Apr 18, 2026
1 check passed
@atani atani deleted the fix/homebrew-token-name branch April 18, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant