ci: publish the GitHub Action on each release#37
Merged
Conversation
After publishing a release, dispatch a 'tool-released' repository_dispatch to nenadvulic/solid-like-a-rock-action, which tags a new vX.Y.Z, advances the floating v1 tag, and cuts a Release (refreshes the Marketplace listing). Requires an ACTION_REPO_TOKEN secret: a PAT with Contents:write on the action repo (GITHUB_TOKEN can't dispatch cross-repo).
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
Adds a
publish-actionjob torelease.yml. After the GitHub Release is published, it fires arepository_dispatch(tool-released) tosolid-like-a-rock-action, which tags a newvX.Y.Z, advances the floatingv1tag, and cuts a Release (refreshing the Marketplace listing).Mirrors the existing
bump-homebrewcross-repo pattern. Payload is built withjq(preinstalled onubuntu-latest) so the JSON is unambiguous.This job needs a new secret
ACTION_REPO_TOKEN— a PAT with Contents: write onnenadvulic/solid-like-a-rock-action(the built-inGITHUB_TOKENcan't dispatch cross-repo, same constraint asHOMEBREW_TAP_TOKEN). Until it's set, the job will fail on the next release; everything else in the workflow is unaffected (independent job).Companion PR
The receiving
publish.ymlworkflow + the newexcludeinput live in solid-like-a-rock-action#1 — merge that first.Test
YAML-validated;
jqpayload construction verified locally.