From 941d21fde457b509674ac01647210bdfcfb8bb99 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 7 May 2024 19:10:12 +0800 Subject: [PATCH] chore(api): quit process on not-found --- src/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index e5c7a43..009ce50 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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.