-
In a GitHub Actions file that is set to run like this
The action will run when you create a pull request from branch_name to another branch. I hope this is not a duplicate, I couldn’t find any reports of this issue when attempting to search for it here and on Google. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
According to the configurations, this workflow only can be triggered when pushing new commits to the branch_name.
If the PR indeed triggers a new workflow run on the head branch, please share your repository with us so that we can check more detailed configurations of your workflows to analyze the root cause. |
Beta Was this translation helpful? Give feedback.
-
That makes total sense to me and I believe that’s what happened. I probably thought that it ran the workflow again because it didn’t finish yet but in reality it just showed the progress. |
Beta Was this translation helpful? Give feedback.
-
So, you just have a misunderstanding for the checks listed on the PR, and my above explanation can answer your doubt, right? In addition, generally the following things will be listed as the checks of the PR:
If my above answer is helpful to you, maybe you can mark it as the solution of this topic, so that other people who have the similar questions can notice it when they are looking for an answer. If you have any other questions about this topic, feel free to tell us. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Yep, that’s exactly what happened! I marked your reply as the answer. And thank you for your very good explanation! |
Beta Was this translation helpful? Give feedback.
-
You’re welcome, @NatsumiHB . |
Beta Was this translation helpful? Give feedback.
@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:
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…