mirror of
https://github.com/actions/create-release.git
synced 2025-06-14 12:57:43 +00:00
fix encoding
This commit is contained in:
parent
15708f2a34
commit
76860a04af
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -7866,7 +7866,7 @@ async function run() {
|
|||||||
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
|
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
|
||||||
let bodyFile = null;
|
let bodyFile = null;
|
||||||
try {
|
try {
|
||||||
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'string' });
|
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ async function run() {
|
|||||||
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
|
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
|
||||||
let bodyFile = null;
|
let bodyFile = null;
|
||||||
try {
|
try {
|
||||||
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'string' });
|
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user