Skip to content

Commit

Permalink
Merge pull request #246 from balena-io/kyle/set-ouputs-on-final
Browse files Browse the repository at this point in the history
Set outputs on finalize
  • Loading branch information
balena-ci authored Jan 30, 2023
2 parents 6d01add + cc1d347 commit 878df25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export async function run(

rawVersion = await balena.getReleaseVersion(previousRelease.id);

// set outputs on finalize
core.setOutput("version", rawVersion);
core.setOutput("release_id", previousRelease.id);

if (inputs.createTag && rawVersion) {
try {
await github.createTag(repoContext, rawVersion);
Expand Down

0 comments on commit 878df25

Please sign in to comment.