Skip to content

Commit

Permalink
fix(ci): use process.exit(); to leave node script in github/action-…
Browse files Browse the repository at this point in the history
…script.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Oct 21, 2024
1 parent 3216d09 commit f74a458
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/create-comment-kernel-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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');
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/create-comment-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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');
Expand Down

0 comments on commit f74a458

Please sign in to comment.