Skip to content

Commit 535250d

Browse files
authored
Wait a second before starting the runner in case the job isn't available yet.
1 parent 7882344 commit 535250d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/example.site.preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737

3838
run: |
3939
while [[ $(curl -s -H "Authorization: token ${GITHUB_TOKEN}" "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs" | jq -r '.jobs[] | select(.status=="queued") | .id' | wc -l) -gt 0 ]]; do
40+
sleep 2
4041
./github-runner-starter \
4142
--run \
4243
--name=github.actions.runner.${{ github.run_id }}.${{ matrix.runner }} \
4344
--labels=github.actions.runner.${{ github.run_id }} \
4445
--config-sh-options=--ephemeral
45-
sleep 3
4646
done
4747
4848
create-site:

0 commit comments

Comments
 (0)