mirror of
https://github.com/actions/create-release.git
synced 2025-06-14 04:47:44 +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 });
|
||||
let bodyFile = null;
|
||||
try {
|
||||
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'string' });
|
||||
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ async function run() {
|
||||
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
|
||||
let bodyFile = null;
|
||||
try {
|
||||
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'string' });
|
||||
bodyFile = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user