switch to snake case and body_path

This commit is contained in:
Jacob Bolda committed 2020-04-11 23:13:20 -05:00
1 parent b77c216cf6
commit d16f41536b
2 files changed
+6 -6

No files matched your search

+3 -3
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);
}
+3 -3
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);
}