1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

GNU comment: Need casting ...

This commit is contained in:
Sylvestre Ledru 2022-10-11 22:19:49 +02:00 committed by GitHub
parent d68dd23a56
commit e127fb2eba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,