Skip to content

Commit

Permalink
chore(api): quit process on not-found
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed May 7, 2024
1 parent bb1dd19 commit 941d21f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export default class Api {
);

if (_jobs.length === 0) {
core.warning(`No jobs of ${jobs} found from ${run.url}.`);
core.setFailed(`No jobs of ${jobs} found from ${run.url}.`);
process.exit(1);
}

// Check if all jobs have been completed.
Expand Down

0 comments on commit 941d21f

Please sign in to comment.