feat: Added clean_changelog option
parent
770b36d584
commit
7684c0e755
|
@ -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:
|
||||||
|
|
|
@ -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}`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue