diff --git a/action.yml b/action.yml index bb771b5..2bb033e 100644 --- a/action.yml +++ b/action.yml @@ -47,6 +47,8 @@ inputs: outputs: changelog: description: 'The generated changelog for the new version' + clean_changelog: + description: 'The generated changelog for the new version without the version name in it' version: description: 'The new version' tag: diff --git a/src/index.js b/src/index.js index b37fdce..9d3fc81 100644 --- a/src/index.js +++ b/src/index.js @@ -62,6 +62,8 @@ async function run() { // Set outputs so other actions (for example actions/create-release) can use it core.setOutput('changelog', stringChangelog) + // Removes the version number from the changelog + core.setOutput('clean_changelog', stringChangelog.split('\n').slice(3).join('\n')) core.setOutput('version', jsonPackage.version) core.setOutput('tag', `${tagPrefix}${jsonPackage.version}`) }