Skip to content

Commit

Permalink
feat: Added old_version output
Browse files Browse the repository at this point in the history
Fixes #240
  • Loading branch information
TriPSs committed Dec 28, 2023
1 parent 61d85d4 commit 3ca6919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34507,6 +34507,7 @@ async function run() {

if (skipEmptyRelease && cleanChangelog === '') {
core.info('Generated changelog is empty and skip-on-empty has been activated so we skip this step')
core.setOutput('old_version', oldVersion)
core.setOutput('version', oldVersion)
core.setOutput('skipped', 'true')
return
Expand Down Expand Up @@ -34566,6 +34567,7 @@ async function run() {
core.setOutput('changelog', stringChangelog)
core.setOutput('clean_changelog', cleanChangelog)
core.setOutput('version', newVersion)
core.setOutput('old_version', oldVersion)
core.setOutput('tag', gitTag)
core.setOutput('skipped', 'false')

Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ async function run() {

if (skipEmptyRelease && cleanChangelog === '') {
core.info('Generated changelog is empty and skip-on-empty has been activated so we skip this step')
core.setOutput('old_version', oldVersion)
core.setOutput('version', oldVersion)
core.setOutput('skipped', 'true')
return
Expand Down Expand Up @@ -228,6 +229,7 @@ async function run() {
core.setOutput('changelog', stringChangelog)
core.setOutput('clean_changelog', cleanChangelog)
core.setOutput('version', newVersion)
core.setOutput('old_version', oldVersion)
core.setOutput('tag', gitTag)
core.setOutput('skipped', 'false')

Expand Down

0 comments on commit 3ca6919

Please sign in to comment.