mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Make sure we still update the comment with if there was no change in test status
This commit is contained in:
committed by
Sylvestre Ledru
parent
0d35d36b52
commit
bd0ace3ac4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user