Skip to content

Commit 10edc10

Browse files
authored
Merge pull request #57 from dscho/teach-git-artifacts-some-patience
git-artifacts: be more patient while waiting for `tag-git` to finish
2 parents 199c409 + 684f4d6 commit 10edc10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workflow-runs.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ const waitForWorkflowRunToFinish = async (context, token, owner, repo, workflowR
2020
return res
2121
}
2222
if (context.log) context.log(`Waiting for workflow run ${workflowRunId} (current status: ${res.status})`)
23-
if (counter++ > 30) throw new Error(`Times out waiting for workflow run ${workflowRunId}?`)
24-
await sleep(1000)
23+
if (counter++ > 60) throw new Error(`Timed out waiting for workflow run ${workflowRunId}?`)
24+
await sleep(10000)
2525
}
2626
}
2727

2828
module.exports = {
2929
waitForWorkflowRunToFinish
30-
}
30+
}

0 commit comments

Comments
 (0)