diff --git a/.github/workflows/GnuComment.yml b/.github/workflows/GnuComment.yml index 8c9b51f1b..3dc2a46d9 100644 --- a/.github/workflows/GnuComment.yml +++ b/.github/workflows/GnuComment.yml @@ -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 = ''; 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,