Skip to content

Commit

Permalink
fix(windUpJob): set last_release outputs before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
iamludal authored Mar 28, 2023
1 parent b75597b commit 91e3dc6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/windUpJob.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
};

0 comments on commit 91e3dc6

Please sign in to comment.