I’d like to have another system (Jira in my case) do a webhook POST to GitHub, where a specific PR will have GitHub Workflow actions rerun.
I see documentation on how to trigger a workflow with an external event, but nothing for how to target a specific PR.
The general flow I'm working with is:
That step #4 is where I don't see much for options. The link above looks somewhat promising, but I get the sense I'm missing something in using it or perhaps it's just the wrong thing for my use case.
Actually, the repository_dispatch event generally is used to trigger a new workflow run from External, not re-run the failed run.
Your final goal is re-running the failed check with the updated external system data, right?
You can try the below methods:
1) Manually re-run the failed check via clicking the "Re-run jobs" button.
NOTE: you can't only re-run the failed check (job in workflow) separately in a check-suite (workflow), you need to re-run the whole check-suite. The above two methods follow this rule.