WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 89cdf2f

Browse files
authored
Merge pull request #992 from softworkz/submit_rerun
Try fix job re-run
2 parents d3e3188 + 1c62c1f commit 89cdf2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/retry-test-jobs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
echo "Inspecting jobs of workflow run $RUN_ID in $REPO"
2929
30-
jobs_json="$(gh api repos/$REPO/actions/runs/$RUN_ID/jobs)"
30+
jobs_json="$(gh api -R $REPO repos/$REPO/actions/runs/$RUN_ID/jobs)"
3131
3232
echo "Jobs and conclusions:"
3333
echo "$jobs_json" | jq '.jobs[] | {name: .name, conclusion: .conclusion}'
@@ -44,7 +44,7 @@ jobs:
4444
4545
if [ "$failed_matrix_jobs" -gt 0 ]; then
4646
echo "Detected failing Integration Tests jobs – re-running failed jobs for this run."
47-
gh run rerun "$RUN_ID" --failed
47+
gh run rerun -R $REPO "$RUN_ID" --failed
4848
else
4949
echo "Only non-matrix jobs (like Test Results) failed – not auto-rerunning."
5050
fi

0 commit comments

Comments
 (0)