Add release id to outputs (#60)
* Add release ID to outputs * Update README
This commit is contained in:
parent
35d938cf01
commit
cebd052c1e
4 changed files with 5 additions and 1 deletions
|
@ -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 |
|
||||
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue