Skip to content

ci: trigger homebrew-tap formula bump on release#355

Merged
alecthomas merged 1 commit into
mainfrom
aat/homebrew-bump-trigger
Jun 24, 2026
Merged

ci: trigger homebrew-tap formula bump on release#355
alecthomas merged 1 commit into
mainfrom
aat/homebrew-bump-trigger

Conversation

@alecthomas

Copy link
Copy Markdown
Collaborator

Drop goreleaser's direct Homebrew publishing, which required Contents
and Pull request write access that the tap's GitHub App token does not
grant. Instead, dispatch the tap's bump-formula workflow with the App
token (needs only Actions: write), matching the pattern used by other
block repositories.

Drop goreleaser's direct Homebrew publishing, which required Contents
and Pull request write access that the tap's GitHub App token does not
grant. Instead, dispatch the tap's bump-formula workflow with the App
token (needs only Actions: write), matching the pattern used by other
block repositories.
@alecthomas alecthomas requested a review from a team as a code owner June 24, 2026 04:13
@alecthomas alecthomas requested review from inez and removed request for a team June 24, 2026 04:13
@alecthomas alecthomas merged commit 2802417 into main Jun 24, 2026
8 checks passed
@alecthomas alecthomas deleted the aat/homebrew-bump-trigger branch June 24, 2026 04:16

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f80ec0d97

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

gh workflow run bump-formula.yaml \
--repo block/homebrew-tap \
-f repo=block/cachew \
-f formula=cachew \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Seed the Homebrew formula before bumping it

On the first cachew tag after this merges, this dispatch will not create the initial tap formula: the block/homebrew-tap bump workflow runs scripts/bump-and-pr.py, which looks for Formula/${formula}.rb and exits if it does not already exist, and the tap's current Formula/ directory does not contain cachew.rb. Since this commit also removes the GoReleaser brews stanza that could create that file, the release will publish GitHub assets but the Homebrew update will fail asynchronously until the formula is seeded or creation is handled before dispatch.

Useful? React with 👍 / 👎.

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