mirror of
https://github.com/actions/create-release.git
synced 2025-06-14 12:57:43 +00:00
add encoding property
This commit is contained in:
parent
bfe866faf6
commit
cf2e5a0ea5
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user