feat: bump the homebrew-tap formula automatically after each release - #95
Merged
Conversation
New homebrew-tap-bump job, parallel to the container job (both need: [burrito-package]) - reads the just-published release's tag + SHA256SUMS, updates rubyists/homebrew-tap's Formula/linear-cli/linear-cli.rb url/sha256 for both platforms via ci/bump_homebrew_formula.rb, and opens a PR there via peter-evans/create-pull-request@v8 (no-op if nothing changed). Uses the RELEASE_PLEASE_TOKEN org secret to push/PR against a different repo than the one the workflow runs in - the default GITHUB_TOKEN is scoped only to this repo. The actual bump logic lives in ci/bump_homebrew_formula.rb rather than inline in the workflow YAML, so it's runnable/testable locally without a real CI run - verified directly against a real copy of the formula and real release checksums, confirmed idempotent, and re-verified after the tap repo's Formula/lc.rb -> Formula/linear-cli/linear-cli.rb move. Depends on rubyists/homebrew-tap#3 (submodule pointer bumped to that branch's tip - update again once it merges if the SHA changes from a squash-merge).
There was a problem hiding this comment.
Pull request overview
This PR automates updating the rubyists/homebrew-tap Homebrew formula after each rubyists/linear-cli release by adding a dedicated workflow job that downloads the release checksums, updates the formula’s per-platform url/sha256, and opens a PR in the tap repo.
Changes:
- Added
ci/bump_homebrew_formula.rbto perform deterministic formula updates using the release tag andSHA256SUMS. - Added a
homebrew-tap-bumpGitHub Actions job that checks out both repos side-by-side, downloads the just-created release’sSHA256SUMS, runs the bump script, and opens a PR viapeter-evans/create-pull-request@v8.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
ci/bump_homebrew_formula.rb |
Implements the formula bump logic (updates per-platform release asset URL + checksum in the formula file). |
.github/workflows/main.yaml |
Adds a post-release workflow job to run the bump script against rubyists/homebrew-tap and open a PR when changes exist. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…restructure homebrew-tap#3 squash-merged to a different SHA than the feature-branch commit we were pointing at - update to the real merged commit on main.
bougyman
pushed a commit
that referenced
this pull request
Aug 12, 2026
🤖 I have created a release *beep* *boop* --- ## [1.4.0](v1.3.0...v1.4.0) (2026-08-12) ### Features * bump the homebrew-tap formula automatically after each release ([#95](#95)) ([d13ddf4](d13ddf4)) ### Bug Fixes * retry install.sh's curl downloads on transient connection failures ([#94](#94)) ([c4633a2](c4633a2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Merged
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
homebrew-tap-bumpjob, parallel to thecontainerjob (bothneeds: [burrito-package]) - reads the just-published release's tag +SHA256SUMS, updatesrubyists/homebrew-tap'sFormula/linear-cli/linear-cli.rburl/sha256for both platforms viaci/bump_homebrew_formula.rb, and opens a PR there viapeter-evans/create-pull-request@v8(no-op if nothing changed).RELEASE_PLEASE_TOKENorg secret to push/PR against a different repo than the one the workflow runs in - the defaultGITHUB_TOKENis scoped only to this repo.ci/bump_homebrew_formula.rbrather than inline in the workflow YAML, so it's runnable/testable locally without a real CI run.Test plan
Formula/lc.rb->Formula/linear-cli/linear-cli.rbmove - still works correctly against the new path/structurepeter-evans/create-pull-request@v8'spath:input (needed since this job checks out two different repos side by side) via its own docsactionlintclean onmain.yamlmix format --check-formatted/mix usage_rules.sync --checkclean inapp/(unaffected, but re-verified since they're now CI gates)🤖 Generated with Claude Code