ci: replace homebrew bump action with brew bump-formula-pr - #5004
Merged
Conversation
arturcic
force-pushed
the
fix/homebrew-bump-formula-pr
branch
from
June 30, 2026 22:48
badb343 to
4bead03
Compare
mislav/bump-homebrew-formula-action fails with "unexpected HTTP 303 response" because GitHub's tarball endpoint now returns 303 instead of 302 and the action only handles 302 (mislav/bump-homebrew-formula-action#342). Switch to Homebrew's own `brew bump-formula-pr` CLI, preinstalled on the runner, which follows the redirect correctly. This also removes a third-party pinned-action dependency. Behaviour is preserved: same source tarball URL, computed SHA-256, PR forked via gittools-bot, and the GitTools Bot committer identity used by previous release PRs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
arturcic
force-pushed
the
fix/homebrew-bump-formula-pr
branch
from
June 30, 2026 23:16
4bead03 to
ad45df9
Compare
|
Contributor
|
Thank you @arturcic for your contribution! |
arturcic
added a commit
that referenced
this pull request
Jul 1, 2026
ci: replace homebrew bump action with brew bump-formula-pr
arturcic
added a commit
to arturcic/GitVersion
that referenced
this pull request
Jul 1, 2026
…ula-pr ci: replace homebrew bump action with brew bump-formula-pr
This was referenced Jul 3, 2026
This was referenced Jul 13, 2026
This was referenced Jul 20, 2026
This was referenced Aug 1, 2026
This was referenced Aug 10, 2026
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.



Problem
The Publish to Homebrew workflow fails immediately with:
This is an upstream defect in
mislav/bump-homebrew-formula-action: GitHub's tarball redirect endpoint (HEAD /repos/{owner}/{repo}/tarball/{ref}) began returning HTTP 303 instead of 302 around 2026-05-16, and the action'sresolveRedirectonly accepts 302. The fix (mislav/bump-homebrew-formula-action#342) is still unmerged, so the6.8.0Homebrew PR was never opened.Change
Replace the third-party action with Homebrew's own
brew bump-formula-prCLI (preinstalled on themacos-latestrunner), which follows the redirect correctly.Behaviour is preserved:
brew bump-formula-pr)download-url: .../tags/${version}.tar.gz--url "$url"(same pattern)--sha256fromcurl … | shasum -a 256push-to: gittools-bot/homebrew-core--fork-org gittools-botCOMMITTER_TOKEN(1Password)HOMEBREW_GITHUB_API_TOKEN(same token)GitTools Bot <gittoolsbot@outlook.com>git config+HOMEBREW_GIT_*Side benefits: removes a pinned third-party action dependency and uses tooling Homebrew maintains.
Notes
--no-auditpreserves the previous action's behaviour (no local audit); homebrew-core's PR CI audits anyway.--messageprepends to the PR body); the commit subject is the standardgitversion <version>.6.8.0Homebrew PR — after merge, re-dispatch Publish to Homebrew withtag-name=6.8.0(or runbrew bump-formula-prlocally).🤖 Generated with Claude Code