diff --git a/.github/workflows/GnuComment.yml b/.github/workflows/GnuComment.yml index d176b0a1d..67c9deb5e 100644 --- a/.github/workflows/GnuComment.yml +++ b/.github/workflows/GnuComment.yml @@ -46,9 +46,9 @@ jobs: var issue_number = Number(fs.readFileSync('./NR')); var content = fs.readFileSync('./result.txt'); console.log(content); - console.log(content.trim()); - console.log(content.trim().length); - if (content.trim().length > 7) { // 7 because we have backquote + \n + console.log(content.toString().trim()); + console.log(content.toString().trim().length); + if (content.toString().trim().length > 7) { // 7 because we have backquote + \n await github.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo,