switch to snake case and body_path

This commit is contained in:
Jacob Bolda 2020-04-11 23:13:20 -05:00
parent b77c216cf6
commit d16f41536b
No known key found for this signature in database
GPG Key ID: 22CE5B1A2BD487F7
2 changed files with 6 additions and 6 deletions

6
dist/index.js vendored
View File

@ -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);
}

View File

@ -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);
}