Skip to content

Commit

Permalink
rerun failed jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
rambohe-ch committed Nov 10, 2023
1 parent 1686563 commit 2d58dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rerun-failed-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ jobs:
status: 'failure',
});
for (const run of workflows.data.workflow_runs) {
const result = await github.rest.actions.reRunWorkflow({
const result = await github.rest.actions.reRunWorkflowFailedJobs({
owner: issue.owner,
repo: issue.repo,
run_id: run.id,
});
console.log(`reRunWorkflow workflow ${JSON.stringify(run)} with response ${JSON.stringify(result)}`);
console.log(`reRunWorkflowFailedJobs workflow ${JSON.stringify(run)} with response ${JSON.stringify(result)}`);
}

0 comments on commit 2d58dd4

Please sign in to comment.