Fix Release job: skip Homebrew tap publish when HOMEBREW_TAP_TOKEN is absent - #54
Closed
kriserickson with Copilot wants to merge 2 commits into
Closed
Fix Release job: skip Homebrew tap publish when HOMEBREW_TAP_TOKEN is absent#54kriserickson with Copilot wants to merge 2 commits into
kriserickson with Copilot wants to merge 2 commits into
Conversation
… is missing The Release job was failing because GoReleaser tried to publish a Homebrew formula to kriserickson/homebrew-tap, but HOMEBREW_TAP_TOKEN was either missing or expired, resulting in a 401 Bad credentials error. Add a skip condition to the brews section in .goreleaser.yaml so the Homebrew tap step is gracefully skipped when the token is not available. The template explicitly returns 'false' (publish) or 'true' (skip) to ensure GoReleaser parses the boolean correctly.
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job "Release"
Fix Release job: skip Homebrew tap publish when HOMEBREW_TAP_TOKEN is absent
Jul 21, 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.
The Release job was failing because GoReleaser attempted to push the Homebrew formula to
kriserickson/homebrew-tapusing a missing or expiredHOMEBREW_TAP_TOKEN, returning a 401 even after binaries were successfully uploaded to GitHub Releases.Change
Added a
skiptemplate to thebrewspublisher in.goreleaser.yamlthat explicitly evaluates to"false"(publish) when the token is present and"true"(skip) when it is not:The explicit
false/truestring values are required — GoReleaser parses the rendered output as a boolean, so an empty string (the natural result of{{ if ... }}true{{ end }}when the condition is false) is ambiguous. This keeps Homebrew publishing fully functional when the token is configured while preventing a hard failure when it is not.