Skip to content

Pull request created in a GitHub action does not trigger workflows with pull_request trigger #65321

Answered by mlegner
mlegner asked this question in Actions
Discussion options

You must be logged in to vote

Actually, I just found another discussion on this topic, which answers why no workflow is triggered: https://github.com/orgs/community/discussions/57484

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.

The issue wasn't that I used the API but that I used it from a GitHub workflo…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@mlegner
Comment options

@d-suter
Comment options

@mlegner
Comment options

@mlegner
Comment options

Answer selected by mlegner
@d-suter
Comment options

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
Labels
Bug Something isn't working correctly Actions Build, test, and automate your deployment pipeline with world-class CI/CD
4 participants