Skip to content

feat: bump the homebrew-tap formula automatically after each release - #95

Merged
bougyman merged 3 commits into
mainfrom
feat-homebrew-tap-bump
Aug 12, 2026
Merged

feat: bump the homebrew-tap formula automatically after each release#95
bougyman merged 3 commits into
mainfrom
feat-homebrew-tap-bump

Conversation

@bougyman

Copy link
Copy Markdown
Member

Summary

  • New homebrew-tap-bump job, parallel to the container job (both needs: [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.
  • Depends on feat: restructure the formula for per-package release-please versioning homebrew-tap#3 (submodule pointer bumped to that branch's tip - will need another bump if the SHA changes from a squash-merge once that PR lands).

Test plan

  • Ran the bump script directly against a real copy of the formula and real release checksums (v1.2.0) - correct output, valid Ruby syntax
  • Confirmed idempotent (re-running with the same version produces identical output)
  • Re-verified after the tap repo's Formula/lc.rb -> Formula/linear-cli/linear-cli.rb move - still works correctly against the new path/structure
  • Verified peter-evans/create-pull-request@v8's path: input (needed since this job checks out two different repos side by side) via its own docs
  • actionlint clean on main.yaml
  • mix format --check-formatted / mix usage_rules.sync --check clean in app/ (unaffected, but re-verified since they're now CI gates)

🤖 Generated with Claude Code

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).
Copilot AI lite review requested due to automatic review settings August 12, 2026 20:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.rb to perform deterministic formula updates using the release tag and SHA256SUMS.
  • Added a homebrew-tap-bump GitHub Actions job that checks out both repos side-by-side, downloads the just-created release’s SHA256SUMS, runs the bump script, and opens a PR via peter-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
bougyman merged commit d13ddf4 into main Aug 12, 2026
2 checks passed
@bougyman
bougyman deleted the feat-homebrew-tap-bump branch August 12, 2026 20:59
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).
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