Skip to content

ci(release): auto-update homebrew-tap formula on new release - #1311

Merged
ajianaz merged 2 commits into
developfrom
chore/homebrew-tap-automation
Oct 5, 2026
Merged

ajianaz merged 2 commits into
developfrom
chore/homebrew-tap-automation

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

What

Adds an update-tap job to the Release workflow. After the GitHub Release + Docker publish succeed, it checks out codecoradev/homebrew-tap, downloads the published checksums-sha256.txt, regenerates Formula/uteke.rb via scripts/update_formula.py, and opens a PR on homebrew-tap.

Why

brew install codecoradev/tap/uteke is now real (tap repo live, CI green). The formula must never go stale — a stale formula is worse than no tap. This automates the update on every release with zero manual steps.

Testing

  • actionlint clean on the modified workflow
  • scripts/update_formula.py executed against the v0.19.0 checksums — formula generated matches the one currently green on homebrew-tap CI (brew audit --strict + brew install/test on macOS ARM and Linux)
  • Idempotency verified: empty diff exits cleanly
  • First live end-to-end run: next tagged release (requires TAP_TOKEN secret — see Notes)

Notes

  • Requires repo secret TAP_TOKEN (fine-grained PAT: contents:write + pull-requests:write on codecoradev/homebrew-tap) — owner action needed.
  • Formula covers macOS ARM + Linux x86_64/aarch64 (no macOS Intel prebuilt exists — documented in caveats).

@ajianaz ajianaz mentioned this pull request Oct 5, 2026
4 tasks done
Comment thread .github/workflows/release.yml Outdated
- name: Download published checksums
run: |
curl -fsSL -o checksums-sha256.txt \
"https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/checksums-sha256.txt"
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz ajianaz changed the title release: auto-update homebrew-tap formula on new release ci(release): auto-update homebrew-tap formula on new release Oct 5, 2026
@ajianaz
ajianaz merged commit 8cb2d47 into develop Oct 5, 2026
15 checks passed
@ajianaz
ajianaz deleted the chore/homebrew-tap-automation branch October 5, 2026 04:08
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.

2 participants