Skip to content

Commit bd0ace3

Browse files
xtqqczzesylvestre
authored andcommitted
Make sure we still update the comment with if there was no change in test status
1 parent 0d35d36 commit bd0ace3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/GnuComment.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ jobs:
5353
const issue_number = Number(fs.readFileSync('./NR'));
5454
const content = fs.readFileSync('./result.txt').toString();
5555
56-
if (content.trim().length <= 7) { // 7 because we have backquote + \n
57-
return;
58-
}
59-
6056
const marker = '<!-- gnu-comment-bot -->';
6157
const body = `${marker}\nGNU testsuite comparison:\n\`\`\`\n${content}\n\`\`\``;
6258
@@ -77,6 +73,9 @@ jobs:
7773
body
7874
});
7975
} else {
76+
if (content.trim().length <= 7) { // 7 because we have backquote + \n
77+
return;
78+
}
8079
await github.rest.issues.createComment({
8180
...context.repo,
8281
issue_number,

0 commit comments

Comments
 (0)