From e127fb2eba38070bc9dc6f6d95ba838ae300671e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 11 Oct 2022 22:19:49 +0200 Subject: [PATCH] GNU comment: Need casting ... --- .github/workflows/GnuComment.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,