Skip to content

Commit e8885b9

Browse files
committed
CI/GnuComment: check for payload existence
1 parent 36db2e6 commit e8885b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/GnuComment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ jobs:
5050
github-token: ${{ secrets.GITHUB_TOKEN }}
5151
script: |
5252
const fs = require('fs');
53+
if (!fs.existsSync('./NR') || !fs.existsSync('./result.txt')) {
54+
core.info("No GNU comment payload to post.");
55+
return;
56+
}
5357
const issue_number = Number(fs.readFileSync('./NR'));
5458
const content = fs.readFileSync('./result.txt').toString();
5559

0 commit comments

Comments
 (0)