diff --git a/dist/post_run/index.js b/dist/post_run/index.js index cc95829..4ee21bf 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -6857,6 +6857,10 @@ function resolveCheckRunId() { if (workflowResponse.jobs.length > 1) { const searchToken = uuid_1.v4(); core.info(`::warning::[ignore] Resolving GitHub Job with Search Token: ${searchToken}`); + yield ((ms) => { + core.info(`resolveCheckRunId() Sleeping for ${ms / 1000} Seconds`); + return new Promise((resolve) => setTimeout(resolve, ms)); + })(2 * 1000); for (const job of workflowResponse.jobs) { try { const { data: annotations } = yield octokit.checks.listAnnotations(Object.assign(Object.assign({}, ctx.repo), { check_run_id: job.id })); diff --git a/dist/run/index.js b/dist/run/index.js index 4de3d51..bb3909d 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -6867,6 +6867,10 @@ function resolveCheckRunId() { if (workflowResponse.jobs.length > 1) { const searchToken = uuid_1.v4(); core.info(`::warning::[ignore] Resolving GitHub Job with Search Token: ${searchToken}`); + yield ((ms) => { + core.info(`resolveCheckRunId() Sleeping for ${ms / 1000} Seconds`); + return new Promise((resolve) => setTimeout(resolve, ms)); + })(2 * 1000); for (const job of workflowResponse.jobs) { try { const { data: annotations } = yield octokit.checks.listAnnotations(Object.assign(Object.assign({}, ctx.repo), { check_run_id: job.id })); diff --git a/src/run.ts b/src/run.ts index 89129a2..a103dc8 100644 --- a/src/run.ts +++ b/src/run.ts @@ -266,6 +266,10 @@ async function resolveCheckRunId(): Promise { if (workflowResponse.jobs.length > 1) { const searchToken = uuidv4() core.info(`::warning::[ignore] Resolving GitHub Job with Search Token: ${searchToken}`) + await ((ms): Promise => { + core.info(`resolveCheckRunId() Sleeping for ${ms / 1000} Seconds`) + return new Promise((resolve) => setTimeout(resolve, ms)) + })(2 * 1000) for (const job of workflowResponse.jobs) { try { const { data: annotations } = await octokit.checks.listAnnotations({