Skip to content

ci: replace homebrew bump action with brew bump-formula-pr - #5004

Merged
arturcic merged 1 commit into
GitTools:mainfrom
arturcic:fix/homebrew-bump-formula-pr
Jun 30, 2026
Merged

ci: replace homebrew bump action with brew bump-formula-pr#5004
arturcic merged 1 commit into
GitTools:mainfrom
arturcic:fix/homebrew-bump-formula-pr

Conversation

@arturcic

Copy link
Copy Markdown
Member

Problem

The Publish to Homebrew workflow fails immediately with:

Error: unexpected HTTP 303 response

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's resolveRedirect only accepts 302. The fix (mislav/bump-homebrew-formula-action#342) is still unmerged, so the 6.8.0 Homebrew PR was never opened.

Change

Replace the third-party action with Homebrew's own brew bump-formula-pr CLI (preinstalled on the macos-latest runner), which follows the redirect correctly.

Behaviour is preserved:

Before (action) After (brew bump-formula-pr)
download-url: .../tags/${version}.tar.gz --url "$url" (same pattern)
action auto-computed SHA --sha256 from curl … | shasum -a 256
push-to: gittools-bot/homebrew-core --fork-org gittools-bot
COMMITTER_TOKEN (1Password) HOMEBREW_GITHUB_API_TOKEN (same token)
committer GitTools Bot <gittoolsbot@outlook.com> same, via git config + HOMEBREW_GIT_*

Side benefits: removes a pinned third-party action dependency and uses tooling Homebrew maintains.

Notes

  • --no-audit preserves the previous action's behaviour (no local audit); homebrew-core's PR CI audits anyway.
  • The "For additional details see …" line moves from the commit body to the PR description (--message prepends to the PR body); the commit subject is the standard gitversion <version>.
  • This does not backfill the missing 6.8.0 Homebrew PR — after merge, re-dispatch Publish to Homebrew with tag-name=6.8.0 (or run brew bump-formula-pr locally).

🤖 Generated with Claude Code

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
arturcic force-pushed the fix/homebrew-bump-formula-pr branch from 4bead03 to ad45df9 Compare June 30, 2026 23:16
@sonarqubecloud

Copy link
Copy Markdown

@arturcic
arturcic merged commit a16b6ff into GitTools:main Jun 30, 2026
118 checks passed
@arturcic
arturcic deleted the fix/homebrew-bump-formula-pr branch June 30, 2026 23:49
@mergify

mergify Bot commented Jun 30, 2026

Copy link
Copy Markdown
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
@arturcic arturcic added this to the 6.8.1 milestone Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant