Do a Github workflow trigger check_run, check_suite, and status events? #148873
Replies: 2 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.
-
I just asked the same question to the Support Copilot, and here is the answer:
Point seven is clear: if you use workflows, the event is not triggered, but point two confuses me. Is the Support Copilot answer correct? |
Beta Was this translation helpful? Give feedback.
-
Question
In the context of a PR, when a workflow is complete, Are
check_run
,check_suite
, andstatus
events triggered?Test case
I am trying to trigger a workflow after all the workflows triggered by a pull request finish. To do that, I check the documentation about events, and there are three that look promising
check_run
,check_suit
, andstatus
.I created four workflows:
status
check_run
check_suit
Then, I create a PR with a simple change in the repo. For my understanding of the documentation when the workflow
On push dummy
is completed it set a check on the PR as complete and it should trigger the workflowOn check_run dummy
and I am not sure if it should triggerOn check_suite dummy
because I dunno if there is a default check suit, also the PR status change tosuccess
because all workflows pass so it should trigger the workflowOn status dummy
.The fact is that only the
On push dummy
and the others are not triggered when this one is completed, Am I doing anything wrong? How these three events are triggered? Are they triggered by the completion of a workflow?Repository resources
I have a repo with the four workflows and the PR that I tested
On push dummy
runsOn check_run dummy
runsOn check_suit dummy
runsOn status dummy
runsBeta Was this translation helpful? Give feedback.
All reactions