Repository navigation
ci(release): open the homebrew-tap PR in the tap's required format and verify checksums - #1384
Merged
Merged
Conversation
…d verify checksums The tap PR created by the release workflow failed the tap's Conventional Commits and PR Description checks on every release (title 'uteke vX: update formula', body without ## What/## Why/## Testing and with literal \n). Use 'chore: update formula for uteke X.Y.Z' for commit and title, pass the body from a file with the three headers, and add a step that fails the job when a formula URL does not point at the release or a SHA256 differs from the published checksums-sha256.txt. Fixes #1383 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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.
What
In the
update-tapjob ofrelease.yml:chore: update formula for uteke X.Y.Z(Conventional Commits, as the tap'spr-checks.ymlrequires);## What,## Why,## Testing(the old inline string sent a literal\n\nand had none of the headers);url/sha256pair of the generated formula must point at/download/<tag>/, be listed in the publishedchecksums-sha256.txtand carry the same SHA256, otherwise the job fails before any PR is opened.The PR stays human-merged (no auto-merge).
Why
#1383: the automated tap PR failed Conventional Commits and PR Description on every release (v0.19.1: #2 closed and replaced by hand; v0.20.0: homebrew-tap#4 edited manually), and its "checksums verified" sentence was only asserted.
Testing
Not run on a real release (needs a tag), so each step was extracted from the YAML and executed locally:
checksums-sha256.txt: exit 0; with one SHA256 altered: exit 1 with an::error::; with a wrong tag (v0.21.0): exit 1; with an asset missing from the checksums file: exit 1.gh: commit message and--titlearechore: update formula for uteke 0.20.0, branchchore/formula-v0.20.0,--body-filecontains the three headers; the title and branch pass the tap's own regexes.bash -n.gh pr createagainst the tap, and the tap's Cora check, which fails with "empty result" on formula-only diffs independently of this change (follow-up for homebrew-tap, noted in ci(release): homebrew-tap PR opened by the release workflow fails the tap's own PR checks #1383).Fixes #1383
🤖 Generated with Claude Code