Re-run Failed Jobs and Track
A 3-step recipe with GitHub Actions. We can help you get access.
Recipe · 3 steps
Re-run Failed Jobs and Track
with GitHub Actions · Continuous Integration Management
Works with AI assistants
Re-run the failed jobs of the latest failed run and follow it to completion.
- List the repository's runs filtered to the failure status and capture the id of the most recent failed run. Branch to the end when none are failed.
- Re-run all failed jobs and their dependents for the selected run. Returns 201 when the re-run is accepted.
- Poll the run until it reaches the terminal completed status, looping back to itself while it is still in progress.
What you'll need to have ready
- accessToken: GitHub bearer token with Actions write access.
- owner: The account owner of the repository.
- repo: The name of the repository without the .git extension.
- enableDebugLogging: Whether to enable debug logging on the re-run.
For your developer
Arazzo workflow github-actions:rerun-failed-run, 3 operations: listWorkflowRunsForRepo → rerunFailedJobs → getWorkflowRun. Specs on APIs.io.