Skip to content

Commit

Permalink
fix(api): await for updating checks (#44)
Browse files Browse the repository at this point in the history
* ci(dummy): debug with failed action

* fix(api): await update check

* chore(api): bundle new api

* ci(dispatch): get back correct exit code
  • Loading branch information
clearloop authored Aug 19, 2024
1 parent 4b14d95 commit 2a503ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2a503ae

Please sign in to comment.