feat: Added clean_changelog option

releases/v3
Tycho Bokdam 2020-05-08 10:19:41 +02:00
parent 770b36d584
commit 7684c0e755
No known key found for this signature in database
GPG Key ID: A0FAE77C8CDF33C7
2 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,8 @@ inputs:
outputs: outputs:
changelog: changelog:
description: 'The generated changelog for the new version' 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: version:
description: 'The new version' description: 'The new version'
tag: tag:

View File

@ -62,6 +62,8 @@ async function run() {
// Set outputs so other actions (for example actions/create-release) can use it // Set outputs so other actions (for example actions/create-release) can use it
core.setOutput('changelog', stringChangelog) 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('version', jsonPackage.version)
core.setOutput('tag', `${tagPrefix}${jsonPackage.version}`) core.setOutput('tag', `${tagPrefix}${jsonPackage.version}`)
} }