Skip to content

How to trigger a GitHub Actions workflow after the semantic-release has created a release. #2596

Answered by gr2m
matzar asked this question in Release workflow
Discussion options

You must be logged in to vote

The problem is

          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 

Events triggered by GitHub Actions (using secrets.GITHUB_TOKEN) do not trigger further events

When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN, with the exception of workflow_dispatch and repository_dispatch, will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs. For example, if a workflow run pushes code using the repository's GITHUB_TOKEN, a new workflow will not run even when the repository contains a workflow configured to run when push events occur.

https://docs.github.com/en/actions/security-guides/automatic-token-a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by matzar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants