Skip to content

Commit

Permalink
Merge pull request #57 from dscho/teach-git-artifacts-some-patience
Browse files Browse the repository at this point in the history
git-artifacts: be more patient while waiting for `tag-git` to finish
  • Loading branch information
dscho authored Nov 10, 2023
2 parents 199c409 + 684f4d6 commit 10edc10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflow-runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ const waitForWorkflowRunToFinish = async (context, token, owner, repo, workflowR
return res
}
if (context.log) context.log(`Waiting for workflow run ${workflowRunId} (current status: ${res.status})`)
if (counter++ > 30) throw new Error(`Times out waiting for workflow run ${workflowRunId}?`)
await sleep(1000)
if (counter++ > 60) throw new Error(`Timed out waiting for workflow run ${workflowRunId}?`)
await sleep(10000)
}
}

module.exports = {
waitForWorkflowRunToFinish
}
}

0 comments on commit 10edc10

Please sign in to comment.