Skip to content

Commit

Permalink
Add release id to outputs (#60)
Browse files Browse the repository at this point in the history
* Add release ID to outputs

* Update README
  • Loading branch information
loicalbertin authored and softprops committed Jul 25, 2021
1 parent 6f63b45 commit 674bcd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions action.yml
Expand Up @@ -39,6 +39,8 @@ env:
outputs:
url:
description: 'URL to the Release HTML Page'
id:
description: 'Release ID'
upload_url:
description: 'URL for uploading assets to the release'
runs:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main.ts
Expand Up @@ -55,6 +55,7 @@ async function run() {
}
console.log(`🎉 Release ready at ${rel.html_url}`);
setOutput("url", rel.html_url);
setOutput("id", rel.id.toString());
setOutput("upload_url", rel.upload_url);
} catch (error) {
setFailed(error.message);
Expand Down

0 comments on commit 674bcd2

Please sign in to comment.