Skip to content

Add Homebrew formula bump workflow - #6

Merged
michaelmagan merged 1 commit into
mainfrom
add-bump-homebrew-workflow
Aug 23, 2026
Merged

michaelmagan merged 1 commit into
mainfrom
add-bump-homebrew-workflow

Conversation

@michaelmagan

Copy link
Copy Markdown
Contributor

Summary

Adds `bump-homebrew.yml`: on this repo's GitHub Release (created by `release.yml`), downloads the new npm tarball, computes its sha256, and opens a PR against `tambo-labs/homebrew-tap` updating `Formula/charming.rb`'s `url` and `sha256`.

Requires

`HOMEBREW_TAP_TOKEN` repo secret -- a fine-grained PAT scoped to just `homebrew-tap` with Contents: read/write. Not using the existing `CLI_SYNC_APP_ID` app since it turns out that app was never actually installed on the org (confirmed via `gh api orgs/tambo-labs/installations` returning zero installations, and `sync-openapi.yml` showing `disabled_manually` with zero runs ever -- worth fixing separately, out of scope here).

Test plan

  • Verified the sed replacement logic locally against the real `Formula/charming.rb` in the tap repo
  • First real trigger (next GitHub Release) -- not yet exercised end-to-end since it depends on the `HOMEBREW_TAP_TOKEN` secret being set

Triggers on this repo's GitHub Release (created by release.yml) and
updates tambo-labs/homebrew-tap's charming.rb with the new npm
tarball's URL and a freshly computed sha256, via a PR rather than a
direct push to the tap's main.

Uses HOMEBREW_TAP_TOKEN, a fine-grained PAT scoped to just
homebrew-tap, rather than the CLI_SYNC_APP_ID app used elsewhere in
this repo -- that app was never actually installed (sync-openapi.yml
has been disabled_manually and has zero runs; this repo has no
configured secrets at all before this change).

Sed logic for rewriting the formula's url/sha256 lines was verified
locally against the real Formula/charming.rb before this commit.
@michaelmagan
michaelmagan merged commit 916be3a into main Aug 23, 2026
1 check passed
@michaelmagan
michaelmagan deleted the add-bump-homebrew-workflow branch August 23, 2026 16:16
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