Workflow triggered by push shows up in PR as checks #156023
-
Select Topic AreaQuestion BodyI have a dev-branch and workflows targeting this branch with code: Now this works as expected when pushing to dev the workflow triggers. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
🕒 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.
-
|
Yes, this is expected behavior. GitHub automatically associates the latest commit status (and any running workflows) on the source branch ( GitHub shows these checks in the PR to:
📝 Note: It doesn’t mean the workflow was triggered by the PR — GitHub shows running or completed workflows on the source branch in the PR view, to give visibility. They’re just shown there for information. |
Beta Was this translation helpful? Give feedback.
-
|
Hey! 👋 Yep, this is actually expected behavior. Even though the workflow is triggered only on push (and not on pull_request), GitHub still shows the status of that workflow as a check on the PR. That’s because the PR includes the same commit that triggered the workflow, and GitHub surfaces the status of that commit in the PR view - just to give better visibility. So while the PR didn’t trigger the workflow directly, it’s still showing the result of the latest commit checks, which can be helpful for reviewers. Hope that clears it up! ✅ |
Beta Was this translation helpful? Give feedback.
-
|
@SuperSection & @harish-govindasamy, thanks for the explanation and taking the time to enlighten me. |
Beta Was this translation helpful? Give feedback.

Hey! 👋 Yep, this is actually expected behavior.
Even though the workflow is triggered only on push (and not on pull_request), GitHub still shows the status of that workflow as a check on the PR. That’s because the PR includes the same commit that triggered the workflow, and GitHub surfaces the status of that commit in the PR view - just to give better visibility.
So while the PR didn’t trigger the workflow directly, it’s still showing the result of the latest commit checks, which can be helpful for reviewers.
Hope that clears it up! ✅