'How to run a specific job with GithubActions

When some of my GithubActions jobs has failed, I don't have the possibility to re-run the specific failing job, only "Re-run all jobs". Is there any way to achieve this?



Solution 1:[1]

I’m the workflow file you want to be able to manually trigger, add workflow_dispatch to the “on:” clause. Then go to the actions tab on github, select the action and you should see the option to manually run it. Before asking this type of question, please use google next time. When looking for “triggger github workflow manually” the first result is a article written by github on how to do it. https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow

Solution 2:[2]

Unfortunately, re-run a single job is not possible yet. Their repository does have an Open Issue to implement this feature. https://github.com/actions/runner/issues/432

The good news is it is officially in their roadmap and is scheduled for Q1 2022. https://github.com/github/roadmap/issues/271

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marijn Kneppers
Solution 2 Renato