fix encoding

This commit is contained in:
Jacob Bolda 2020-02-03 23:14:20 -06:00
parent 15708f2a34
commit 76860a04af
No known key found for this signature in database
GPG Key ID: 22CE5B1A2BD487F7
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -7866,7 +7866,7 @@ async function run() {
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
let bodyFile = null;
try {
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'string' });
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
} catch (error) {
core.setFailed(error.message);
}

View File

@ -20,7 +20,7 @@ async function run() {
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
let bodyFile = null;
try {
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'string' });
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
} catch (error) {
core.setFailed(error.message);
}