Skip to content

Push doesn't trigger workflow action in an open PR #25332

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

You must be logged in to vote

Hi @amete,

Glad to see you in Github Community Forum!

This is by designed. The latter commit is pushed within an action. There is a limitation of workflow: An action in a workflow run can’t trigger a new workflow run

When you use GITHUB_TOKEN in your actions, all of the interactions with the repository are on behalf of the Github-actions bot. The operations act by Github-actions bot cannot trigger a new workflow run.

As an alternative, you can create a personal access token, and use it to create an encrypted secret, use the secret instead of GITHUB_TOKEN for the action. Please check similar ticket for the details.

Thanks

Replies: 2 comments

Comment options

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