What is the second column in the Actions for? #162786
-
Why are you starting this discussion?Question What GitHub Actions topic or product is this about?Misc Discussion DetailsWhen we create a PR and successfully run it, an entry on the Actions page for that repo on GitHub.com, will appear. The left most column has the value of the My question concerns the second column. What branch is displayed there? What I mean is that in previous iterations of the .yml file it looked like it was showing us the name of the destination branch when the PR succeeded and merged to the destination branch. However, we were experiencing other side issues, so I asked in this forum/discussion group for help, which I received 😄. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
well...gitHub Actions always shows you the branch or ref that actually kicked off that workflow run, so if your job is firing on pull_request events ,, the second column will list the PR’s source branch (the head ref) because that’s what triggered it. If you want to see your destination branch there, you’d need to let the workflow run on the push event to that branch (e.g. push: branches: [main]) rather than only on the pull_request trigger.... |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
I believe it is the name of the originating branch. If that is wrong, please correct me. |
Beta Was this translation helpful? Give feedback.
-
|
these might be the related helpful issues:
|
Beta Was this translation helpful? Give feedback.
these might be the related helpful issues:
Have a new workflow run from a PR (non-main branch) before merging
🔗 https://github.com/orgs/community/discussions/25746
GitHub Actions run a job on pull request merge to specific branch
🔗 https://github.com/orgs/community/discussions/67160