Skip to content

Push from workflow not doesn't trigger on.push.tags workflow #27194

Discussion options

You must be logged in to vote

By default, actions/checkout configures GITHUB_TOKEN for authentication. The problem is that events caused by GITHUB_TOKEN cannot trigger new workflows as described in Using the GITHUB_TOKEN in a workflow:

When you use the repository’s GITHUB_TOKEN to perform tasks on behalf of the GitHub Actions app, events triggered by the GITHUB_TOKEN will not create a new workflow run.

If you want the push to create new workflow runs you need to use a PAT instead. After adding it as a secret you can do something like this to use it instead of GITHUB_TOKEN:

- uses: actions/checkout@v2
  with:
    token: ${{ secrets.PAT }}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@sebthom
Comment options

@I-Want-ToBelieve
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants