Add release id to outputs (#60)

* Add release ID to outputs

* Update README
This commit is contained in:
Loïc Albertin 2021-05-02 00:56:49 +02:00 committed by softprops
parent 3b4957b6fd
commit 0a4afc0be2
4 changed files with 5 additions and 1 deletions

View file

@ -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 |

View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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);