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 3b4957b commit 0a4afc0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -193,6 +193,7 @@ The following outputs can be accessed via `${{ steps.<step-id>.outputs }}` from
| Name | Type | Description |
|-------------|---------|-----------------------------------------------------------------|
| `url` | String | Github.com URL for the release |
| `id` | String | Release ID |
| `upload_url`| String | URL for uploading assets to the release |


Expand Down
2 changes: 2 additions & 0 deletions action.yml
Expand Up @@ -35,6 +35,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 @@ -59,6 +59,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 0a4afc0

Please sign in to comment.