From f74a4582c41371f19e9a9c2647e04dfe376f1245 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Mon, 21 Oct 2024 11:35:45 +0200 Subject: [PATCH] fix(ci): use `process.exit();` to leave node script in github/action-script. Signed-off-by: Federico Di Pierro --- .github/workflows/create-comment-kernel-testing.yml | 6 ++++-- .github/workflows/create-comment-perf.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-comment-kernel-testing.yml b/.github/workflows/create-comment-kernel-testing.yml index adf52b70a2..f051f23e86 100644 --- a/.github/workflows/create-comment-kernel-testing.yml +++ b/.github/workflows/create-comment-kernel-testing.yml @@ -27,7 +27,8 @@ jobs: return artifact.name == "pr-kernel-testing" }); if (matchArtifacts == null) { - exit 0; + var process = require('process'); + process.exit(); } var matchArtifact = matchArtifacts[0]; var download = await github.rest.actions.downloadArtifact({ @@ -53,7 +54,8 @@ jobs: script: | var fs = require('fs'); if (!fs.existsSync('./NR')) { - exit 0; + var process = require('process'); + process.exit(); } var issue_number = Number(fs.readFileSync('./NR')); var comment_body = fs.readFileSync('./COMMENT'); diff --git a/.github/workflows/create-comment-perf.yml b/.github/workflows/create-comment-perf.yml index f71752efff..255c353868 100644 --- a/.github/workflows/create-comment-perf.yml +++ b/.github/workflows/create-comment-perf.yml @@ -27,7 +27,8 @@ jobs: return artifact.name == "pr-perf" }); if (matchArtifacts == null) { - exit 0; + var process = require('process'); + process.exit(); } var matchArtifact = matchArtifacts[0]; var download = await github.rest.actions.downloadArtifact({ @@ -53,7 +54,8 @@ jobs: script: | var fs = require('fs'); if (!fs.existsSync('./NR')) { - exit 0; + var process = require('process'); + process.exit(); } var issue_number = Number(fs.readFileSync('./NR')); var comment_body = fs.readFileSync('./COMMENT');