mirror of
https://github.com/actions/create-release.git
synced 2025-06-15 05:17:44 +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 });
|
const body = core.getInput('body', { required: false });
|
||||||
let bodyFile = null;
|
let bodyFile = null;
|
||||||
try {
|
try {
|
||||||
bodyFile = fs.readFileSync(body);
|
bodyFile = fs.readFileSync(body, { encoding: 'string' });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// noop
|
// noop
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ async function run() {
|
|||||||
const body = core.getInput('body', { required: false });
|
const body = core.getInput('body', { required: false });
|
||||||
let bodyFile = null;
|
let bodyFile = null;
|
||||||
try {
|
try {
|
||||||
bodyFile = fs.readFileSync(body);
|
bodyFile = fs.readFileSync(body, { encoding: 'string' });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// noop
|
// noop
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user