chore: restart-on-label: wait for 30s (#4663)

this doesn't work reliable when it cancels jobs. Maybe sleeping helps.
This commit is contained in:
Joachim Breitner 2024-07-05 21:50:14 +02:00 committed by GitHub
parent 75fe520562
commit 04fefdd728
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"