Skip to content

Commit e134877

Browse files
committed
fix race condition
1 parent 808ffcd commit e134877

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/all-green.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ async function checkCompleted () {
6464
await setTimeout(POLLING_INTERVAL * 60_000)
6565
console.log('Retrying.')
6666
retries++
67-
return checkCompleted()
67+
await checkCompleted()
6868
}
6969
}
7070

7171
async function checkAllGreen () {
7272
let checkRuns
7373

7474
try {
75-
checkCompleted()
75+
await checkCompleted()
7676
} finally {
7777
checkRuns = await octokit.paginate(
7878
'GET /repos/:owner/:repo/commits/:ref/check-runs',

0 commit comments

Comments
 (0)