Skip to content

Commit d16f415

Browse files
committed
switch to snake case and body_path
1 parent b77c216 commit d16f415

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7866,11 +7866,11 @@ async function run() {
78667866
const draft = core.getInput('draft', { required: false }) === 'true';
78677867
const prerelease = core.getInput('prerelease', { required: false }) === 'true';
78687868

7869-
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
7869+
const bodyPath = core.getInput('body_path', { required: false });
78707870
let bodyFileContent = null;
7871-
if (bodyFromFile !== '' && !!bodyFromFile) {
7871+
if (bodyPath !== '' && !!bodyPath) {
78727872
try {
7873-
bodyFileContent = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
7873+
bodyFileContent = fs.readFileSync(bodyPath, { encoding: 'utf8' });
78747874
} catch (error) {
78757875
core.setFailed(error.message);
78767876
}

src/create-release.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ async function run() {
2020
const draft = core.getInput('draft', { required: false }) === 'true';
2121
const prerelease = core.getInput('prerelease', { required: false }) === 'true';
2222

23-
const bodyFromFile = core.getInput('bodyFromFile', { required: false });
23+
const bodyPath = core.getInput('body_path', { required: false });
2424
let bodyFileContent = null;
25-
if (bodyFromFile !== '' && !!bodyFromFile) {
25+
if (bodyPath !== '' && !!bodyPath) {
2626
try {
27-
bodyFileContent = fs.readFileSync(bodyFromFile, { encoding: 'utf8' });
27+
bodyFileContent = fs.readFileSync(bodyPath, { encoding: 'utf8' });
2828
} catch (error) {
2929
core.setFailed(error.message);
3030
}

0 commit comments

Comments
 (0)