add encoding property

This commit is contained in:
Jacob Bolda 2020-02-03 22:49:09 -06:00
parent bfe866faf6
commit cf2e5a0ea5
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

@ -7865,7 +7865,7 @@ async function run() {
const body = core.getInput('body', { required: false });
let bodyFile = null;
try {
bodyFile = fs.readFileSync(body);
bodyFile = fs.readFileSync(body, { encoding: 'string' });
} catch (e) {
// noop
}

View File

@ -19,7 +19,7 @@ async function run() {
const body = core.getInput('body', { required: false });
let bodyFile = null;
try {
bodyFile = fs.readFileSync(body);
bodyFile = fs.readFileSync(body, { encoding: 'string' });
} catch (e) {
// noop
}