mirror of
https://github.com/actions/create-release.git
synced 2025-07-30 06:37:41 +00:00
switch to snake case and body_path
This commit is contained in:
parent
b77c216cf6
commit
d16f41536b
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -7866,11 +7866,11 @@ async function run() {
|
||||
const draft = core.getInput('draft', { required: false }) === 'true';
|
||||
const prerelease = core.getInput('prerelease', { required: false }) === 'true';
|
||||
|
||||
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
|
||||
const bodyPath = core.getInput('body_path', { required: false });
|
||||
let bodyFileContent = null;
|
||||
if (bodyFromFile !== '' && !!bodyFromFile) {
|
||||
if (bodyPath !== '' && !!bodyPath) {
|
||||
try {
|
||||
bodyFileContent = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
|
||||
bodyFileContent = fs.readFileSync(bodyPath, { encoding: 'utf8' });
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
@ -20,11 +20,11 @@ async function run() {
|
||||
const draft = core.getInput('draft', { required: false }) === 'true';
|
||||
const prerelease = core.getInput('prerelease', { required: false }) === 'true';
|
||||
|
||||
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
|
||||
const bodyPath = core.getInput('body_path', { required: false });
|
||||
let bodyFileContent = null;
|
||||
if (bodyFromFile !== '' && !!bodyFromFile) {
|
||||
if (bodyPath !== '' && !!bodyPath) {
|
||||
try {
|
||||
bodyFileContent = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
|
||||
bodyFileContent = fs.readFileSync(bodyPath, { encoding: 'utf8' });
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user