ci: trigger homebrew-tap formula update on release#108
Closed
mochlast wants to merge 1 commit into
Closed
Conversation
After a successful GoReleaser run, dispatch a repository_dispatch event to conplementAG/homebrew-tap so the copsctl Homebrew formula is bumped automatically (version + checksums resolved on the tap side).
c07da8a to
f7da75c
Compare
Member
Author
|
Verworfen: Die Cross-Repo-Automatisierung wird nicht weiterverfolgt. Im Tap übernimmt stattdessen ein manuell getriggerter Workflow (update-formula.yml) den Formel-Bump direkt. |
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.
Was
Ergänzt einen
bump-homebrew-tap-Job inrelease.yml, der nach erfolgreichem GoReleaser-Lauf einrepository_dispatch-Event (event_type: copsctl-release) an conplementAG/homebrew-tap sendet. Der Tap aktualisiert die copsctl-Formel daraufhin automatisch (Version + Checksums werden tap-seitig auschecksums.txtaufgelöst) und mergt den PR per Auto-Merge.needs: [goreleaser]→ der Job läuft nur, wenn tatsächlich ein Release gebaut wurde (bei übersprungenem GoReleaser wird auch dieser Job übersprungen). Die bestehende Gating-Logik bleibt unangetastet.gh release viewmit dem Standard-GITHUB_TOKEN; der Cross-Repo-Dispatch nutzt ein separates Token.Voraussetzung (vor dem Mergen einrichten)
HOMEBREW_TAP_TOKEN: Fine-grained PAT (oder GitHub-App-Token) mitcontents: writeaufconplementAG/homebrew-tap. Der Default-GITHUB_TOKENkann keine Events an ein anderes Repo dispatchen.Abhängigkeit
Gehört zum gegenstückigen Tap-PR (Listener
repository_dispatch: copsctl-release+ Auto-Merge). Der Tap-PR sollte zuerst gemergt werden.