ci: dispatch swarm-cli bump on tag push instead of release - #5607
Open
darkobas2 wants to merge 1 commit into
Open
ci: dispatch swarm-cli bump on tag push instead of release#5607darkobas2 wants to merge 1 commit into
darkobas2 wants to merge 1 commit into
Conversation
The release event never fired because releases are cut with GITHUB_TOKEN, and gh workflow run needed actions: write which the App installation lacks. Trigger on the tag push and send a repository_dispatch instead.
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.
swarm-cli-bee-version.yamlhas never run since it was added, for two reasons.release: releasednever starts, because goreleaser cuts releases usingGITHUB_TOKEN, and workflows started byGITHUB_TOKENdo not trigger other workflows. Andgh workflow runneedsactions: write, which the bee-runner App does not have.This switches the trigger to the tag push, which does fire because a person pushes the tag, and replaces
gh workflow runwith arepository_dispatch, matching the pattern already used in bee-js. The token is now scoped tocontents: writeonly.Merge ethersphere/swarm-cli#791 first — until then the dispatch is delivered but silently ignored.
release.yamlstays unchanged.