diff --git a/dist/index.js b/dist/index.js index e3e65ac..c21950d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); } diff --git a/src/create-release.js b/src/create-release.js index dfc980b..cf4a582 100644 --- a/src/create-release.js +++ b/src/create-release.js @@ -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); }