Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
switch to snake case and body_path
  • Loading branch information
Jacob Bolda committed Apr 12, 2020
1 parent b77c216 commit d16f415
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Expand Up @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions src/create-release.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit d16f415

Please sign in to comment.