From 91e3dc6dcc39e4b462a165d85338c4e6cf1db9b6 Mon Sep 17 00:00:00 2001 From: Ludal <44783088+iamludal@users.noreply.github.com> Date: Tue, 28 Mar 2023 15:11:48 +0200 Subject: [PATCH] fix(windUpJob): set last_release outputs before returning --- src/windUpJob.task.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/windUpJob.task.js b/src/windUpJob.task.js index 83ff6dbe..7f5d3d20 100644 --- a/src/windUpJob.task.js +++ b/src/windUpJob.task.js @@ -16,7 +16,9 @@ module.exports = async (result) => { if (lastRelease.version) { core.debug(`The last release was "${lastRelease.version}".`); - core.setOutput(outputs.last_release_version, lastRelease.version) + core.setOutput(outputs.last_release_version, lastRelease.version); + core.setOutput(outputs.last_release_git_head, lastRelease.gitHead); + core.setOutput(outputs.last_release_git_tag, lastRelease.gitTag); } if (!nextRelease) { @@ -43,7 +45,4 @@ module.exports = async (result) => { core.setOutput(outputs.new_release_notes, notes); core.setOutput(outputs.new_release_git_head, gitHead); core.setOutput(outputs.new_release_git_tag, gitTag); - core.setOutput(outputs.last_release_version, lastRelease.version); - core.setOutput(outputs.last_release_git_head, lastRelease.gitHead); - core.setOutput(outputs.last_release_git_tag, lastRelease.gitTag); };