Skip to content

Commit

Permalink
feat: Added clean_changelog option
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed May 8, 2020
1 parent 770b36d commit 7684c0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
Expand Down

0 comments on commit 7684c0e

Please sign in to comment.