add encoding property

This commit is contained in:
Jacob Bolda
2020-02-03 22:49:09 -06:00
parent bfe866faf6
commit cf2e5a0ea5
2 changed files with 2 additions and 2 deletions

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
}