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

Improve the formating + remove debug message

This commit is contained in:
Sylvestre Ledru 2022-10-12 09:26:20 +02:00 committed by GitHub
parent 2ca433e547
commit 15ed0534ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,14 +45,11 @@ jobs:
var fs = require('fs');
var issue_number = Number(fs.readFileSync('./NR'));
var content = fs.readFileSync('./result.txt');
console.log(content);
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,
issue_number: issue_number,
body: 'GNU testsuite comparison:\n```' + content + '\n```'
body: 'GNU testsuite comparison:\n```\n' + content + '```'
});
}