Skip to content

Bug (?) GitHub Actions run on Pull Request from main branch #26876

Answered by BrightRan
ghost asked this question in Actions
Discussion options

You must be logged in to vote

@NatsumiHB ,

According to the configurations, this workflow only can be triggered when pushing new commits to the branch_name.
When you open a PR to merge commits from branch_name into another branch, the branch_name is the head branch (source branch) of the PR. There is a point you need to understand:

  • All the jobs in the workflow run that triggered by the latest commit push on the head branch will be listed as the checks of the PR.
    Note: it just fetches jobs from the existing workflow run that triggered by the push event on the head branch, it does not trigger new workflow run on the head branch.

If the PR indeed triggers a new workflow run on the head branch, please share your reposit…

Replies: 5 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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants