diff --git a/.github/workflows/benchmark-cli.yml b/.github/workflows/benchmark-cli.yml index 06dae25..e180971 100644 --- a/.github/workflows/benchmark-cli.yml +++ b/.github/workflows/benchmark-cli.yml @@ -63,7 +63,7 @@ jobs: const path = require('path') const { PR_ID, REPO, OWNER } = process.env - const COMMENT = fs.readFileSync(path.join('results/temp', 'report.md')) + const COMMENT = fs.readFileSync(path.join('results/temp', 'report.md'), 'utf-8') const updateComment = await github.paginate(github.rest.issues.listComments, { owner: OWNER, diff --git a/scripts/template-oss/benchmark-cli-yml.hbs b/scripts/template-oss/benchmark-cli-yml.hbs index 56b8ec1..7853700 100644 --- a/scripts/template-oss/benchmark-cli-yml.hbs +++ b/scripts/template-oss/benchmark-cli-yml.hbs @@ -32,7 +32,7 @@ jobs: const path = require('path') const { PR_ID, REPO, OWNER } = process.env - const COMMENT = fs.readFileSync(path.join('{{ resultsDir }}', 'report.md')) + const COMMENT = fs.readFileSync(path.join('{{ resultsDir }}', 'report.md'), 'utf-8') const updateComment = await github.paginate(github.rest.issues.listComments, { owner: OWNER,