mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-02-25 17:11:55 +00:00
Add sleep to allow Annotation propegation.
This commit is contained in:
parent
3ed0aa3e0a
commit
527060ed6f
3 changed files with 12 additions and 0 deletions
4
dist/post_run/index.js
vendored
4
dist/post_run/index.js
vendored
|
|
@ -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 }));
|
||||
|
|
|
|||
4
dist/run/index.js
vendored
4
dist/run/index.js
vendored
|
|
@ -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 }));
|
||||
|
|
|
|||
|
|
@ -266,6 +266,10 @@ async function resolveCheckRunId(): Promise<number> {
|
|||
if (workflowResponse.jobs.length > 1) {
|
||||
const searchToken = uuidv4()
|
||||
core.info(`::warning::[ignore] Resolving GitHub Job with Search Token: ${searchToken}`)
|
||||
await ((ms): Promise<void> => {
|
||||
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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue