Add Homebrew formula bump workflow - #6
Merged
Merged
Conversation
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.
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
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