diff --git a/index.js b/index.js index 7111b22..5569e7e 100644 --- a/index.js +++ b/index.js @@ -219,11 +219,11 @@ const main = async () => { }, repositoryName: repository }).promise() - status = 'IN_PROGRESS' + status = 'PENDING' } let firstPoll = true - while (status === 'IN_PROGRESS') { + while (status === 'PENDING' || status === 'IN_PROGRESS') { if (!firstPoll) { await new Promise((resolve) => { setTimeout(resolve, 5000)