From 7684c0e755c006004c61d6a6c12e748fee34179d Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Fri, 8 May 2020 10:19:41 +0200 Subject: [PATCH] feat: Added clean_changelog option --- action.yml | 2 ++ src/index.js | 2 ++ 2 files changed, 4 insertions(+) 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}`) }