Skip to content

Commit

Permalink
chore: restart-on-label: wait for 30s (#4663)
Browse files Browse the repository at this point in the history
this doesn't work reliable when it cancels jobs. Maybe sleeping helps.
  • Loading branch information
nomeata committed Jul 5, 2024
1 parent 75fe520 commit 04fefdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/restart-on-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
gh run view "$run_id"
echo "Cancelling (just in case)"
gh run cancel "$run_id" || echo "(failed)"
echo "Waiting for 10s"
sleep 10
echo "Waiting for 30s"
sleep 30
gh run view "$run_id"
echo "Rerunning"
gh run rerun "$run_id"
Expand Down

0 comments on commit 04fefdd

Please sign in to comment.