Skip to content

ci: dispatch swarm-cli bump on tag push instead of release - #5607

Open
darkobas2 wants to merge 1 commit into
masterfrom
ci/swarm-cli-dispatch-repository-dispatch
Open

ci: dispatch swarm-cli bump on tag push instead of release#5607
darkobas2 wants to merge 1 commit into
masterfrom
ci/swarm-cli-dispatch-repository-dispatch

Conversation

@darkobas2

Copy link
Copy Markdown
Contributor

swarm-cli-bee-version.yaml has never run since it was added, for two reasons. release: released never starts, because goreleaser cuts releases using GITHUB_TOKEN, and workflows started by GITHUB_TOKEN do not trigger other workflows. And gh workflow run needs actions: 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 run with a repository_dispatch, matching the pattern already used in bee-js. The token is now scoped to contents: write only.

Merge ethersphere/swarm-cli#791 first — until then the dispatch is delivered but silently ignored. release.yaml stays unchanged.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant