Repository navigation
Conversation
lexfrei
force-pushed
the
ci/homebrew-tap-bump
branch
from
November 16, 2026 10:34
26926ec to
c7760b1
Compare
lexfrei
force-pushed
the
ci/homebrew-tap-bump
branch
from
November 16, 2026 10:40
c7760b1 to
7a7fa60
Compare
The aeman formula in aenix-io/homebrew-tap builds from the tag source tarball, so every release needs its url and sha256 updated by hand. A release tag now opens that pull request in the tap, authenticated as a GitHub App whose installation token is scoped to the tap repository. The formula is committed through the contents API, so the commit is signed by GitHub. A re-run of the same tag reuses the branch and skips an already open pull request; a tag older than the formula's version is ignored instead of downgrading it. Pre-release tags do not match. A tag older than an open bump PR opens nothing, and a newer tag closes the older bump PRs with a comment pointing at its own and deletes their branches. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
lexfrei
force-pushed
the
ci/homebrew-tap-bump
branch
from
November 16, 2026 10:43
7a7fa60 to
64c1be6
Compare
Contributor
Author
|
Replaced by #327: GoReleaser now publishes prebuilt binaries and commits the formula to the tap directly, so a bump PR is no longer needed. |
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.
A release tag now opens a pull request in aenix-io/homebrew-tap that points
Formula/aeman.rbat the tag's source tarball, so the formula no longer has to be bumped by hand.The job mints an installation token for a GitHub App with
actions/create-github-app-token, scoped to the tap repository with contents and pull-requests write. The workflow's ownGITHUB_TOKENgets no permissions. It downloads the tag tarball, computes its sha256 and rewritesurlandsha256through the contents API. GitHub signs that commit, and a PR opened by an App token triggers the tap's CI.A formula whose
urlline no longer has the tag tarball form fails the job instead of passing as "already up to date". Re-running the job for the same tag is safe. It does nothing if the formula is already at that tag, reuses an existing bump branch and skips an already open PR. Tags older than the formula's version are ignored, so a patch release on an older line does not downgrade it. Pre-release tags such asv1.2.3-rc1do not match the trigger.A tag older than an open bump PR in the tap opens nothing, and a newer tag closes the older bump PRs with a comment linking its own and deletes their branches.
Setup: the App's client ID is in the
HOMEBREW_TAP_CLIENT_IDActions variable and its private key in theHOMEBREW_TAP_PRIVATE_KEYsecret.Tested offline with
ghstubbed: v0.53.1 against the current formula is a no-op, v0.53.0 is skipped as a downgrade, and v0.53.0 against a v0.52.1 formula produces the expected url and sha256 (checked againstshasum). A re-run with the branch and PR already in place makes no writes. A re-run with the branch but no PR only opens the PR. With a v1.3.0 bump PR open, v1.2.4 makes no writes and v1.3.1 opens its PR and closes the v1.3.0 one. A run leaves its own same-tag PR, fork PRs and non-tagbump-aeman-*branches alone, and a re-run makes no writes.