Skip to content

Commit 7daf3aa

Browse files
committed
remove delay for reruns
1 parent 2363588 commit 7daf3aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/all-green.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- run: yarn add @actions/github octokit
3131
- run: node scripts/all-green.mjs
3232
env:
33-
DELAY: 5
33+
DELAY: ${{ github.run_attempt == 1 && '7' || '0' }} # 7 minutes on first attempt, no delay on reruns
3434
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
3535
GITHUB_TOKEN: ${{ github.token }}
3636
POLLING_INTERVAL: 1

0 commit comments

Comments
 (0)