diff --git a/dist/index.js b/dist/index.js index c818ff5..162fa0c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -39794,7 +39794,7 @@ async function run() { if (waitForCompletion) { info(`\u23F3 Waiting for workflow run to complete with a timeout of ${timeoutSeconds} seconds...`); const startTime = Date.now(); - while (runStatus === "in_progress" || runStatus === "queued" || runStatus === "waiting") { + while (runStatus === "in_progress" || runStatus === "queued" || runStatus === "waiting" || runStatus === "pending") { if ((Date.now() - startTime) / 1e3 > timeoutSeconds) { warning( `\u26A0\uFE0F Workflow run did not complete within ${timeoutSeconds} seconds, timing out. diff --git a/src/main.ts b/src/main.ts index 66f7ec8..afe4f50 100644 --- a/src/main.ts +++ b/src/main.ts @@ -105,7 +105,12 @@ async function run(): Promise { if (waitForCompletion) { core.info(`⏳ Waiting for workflow run to complete with a timeout of ${timeoutSeconds} seconds...`) const startTime = Date.now() - while (runStatus === 'in_progress' || runStatus === 'queued' || runStatus === 'waiting') { + while ( + runStatus === 'in_progress' || + runStatus === 'queued' || + runStatus === 'waiting' || + runStatus === 'pending' + ) { if ((Date.now() - startTime) / 1000 > timeoutSeconds) { core.warning( `⚠️ Workflow run did not complete within ${timeoutSeconds} seconds, timing out.\nNote: The workflow is still running but we have stopped waiting. You can check the run status here: ${dispatchResp.data.html_url}`,