Make sure we still update the comment with if there was no change in test status

This commit is contained in:
xtqqczze
2026-04-13 10:43:48 +02:00
committed by Sylvestre Ledru
parent 0d35d36b52
commit bd0ace3ac4
+3 -4
View File
@@ -53,10 +53,6 @@ jobs:
const issue_number = Number(fs.readFileSync('./NR'));
const content = fs.readFileSync('./result.txt').toString();
if (content.trim().length <= 7) { // 7 because we have backquote + \n
return;
}
const marker = '<!-- gnu-comment-bot -->';
const body = `${marker}\nGNU testsuite comparison:\n\`\`\`\n${content}\n\`\`\``;
@@ -77,6 +73,9 @@ jobs:
body
});
} else {
if (content.trim().length <= 7) { // 7 because we have backquote + \n
return;
}
await github.rest.issues.createComment({
...context.repo,
issue_number,