diff --git a/dist/index.js b/dist/index.js index 8877106..1d1c215 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29021,7 +29021,7 @@ class Api { return job; } else { - this.updateCheck(check.id, job); + await this.updateCheck(check.id, job); check.status = job.status === 'waiting' ? 'in_progress' : job.status; check.conclusion = job.conclusion; diff --git a/src/api.ts b/src/api.ts index 2189e25..0ddd832 100644 --- a/src/api.ts +++ b/src/api.ts @@ -126,7 +126,7 @@ export default class Api { core.debug(`No need to update check ${job.name} .`); return job; } else { - this.updateCheck(check.id, job); + await this.updateCheck(check.id, job); check.status = job.status === 'waiting' ? 'in_progress' : job.status; check.conclusion = job.conclusion;