Skip to content

Push from action (even with PAT) does not trigger action #26220

Answered by weide-zhou
gmalkov asked this question in Actions
Discussion options

You must be logged in to vote

Hi @gmalkov ,

‘actions/checkout@v2’ will persist the GITHUB_TOKEN credential to the repo config to make git operations like push…etc, which will not trigger the another workflow then.

Please use ‘actions/checkout@v1’ instead. Or if you use v2, please add ‘persist-credentials: false’ in the action args. 

It will trigger new workflow with PAT then. Please refer to the link for more details.

Thanks.

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
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
5 participants