ci: bump homebrew-tap formula on agent release#205
Merged
Conversation
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
agent-release.ymlthat rewritesFormula/shellwatch-agent.rbinrado0x54/homebrew-tapafter a successful release: bumpsversionand the four per-archsha256hashes (read from the.sha256files already inartifacts/), then commits + pushes to the tap'smain.python3rewrite that fails the job if any pattern doesn't match exactly once — a malformed/stale tap formula can't ship silently.::notice::ifHOMEBREW_TAP_TOKENis unset, so a forked/detached clone of this repo can still cut releases.main(no protection ruleset on the personal tap; PR ceremony adds nothing).Why
The tap's README claimed "auto-bumps via a workflow in the upstream repo" but no such step existed — every release would have required a manual formula edit. This makes that claim true.
Required setup (already done)
HOMEBREW_TAP_TOKENrepo secret — fine-grained PAT withContents: writescoped torado0x54/homebrew-taponly.Test plan
run:block, fed it fake version + sha256s against a fixture formula — version + all 4 hashes rewritten, commit created, push would fire.exit 0with the notice.YAML.load_file); step ordering isCreate GitHub Release→Bump homebrew-tap formula→Open CHANGELOG PR to develop.