Skip to content

Commit

Permalink
Add upload_url as action output (#75)
Browse files Browse the repository at this point in the history
* Add upload_url as action output

* Update README
  • Loading branch information
erri120 committed Mar 21, 2021
1 parent 94651eb commit 1f8f474
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
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 |
| `upload_url`| String | URL for uploading assets to the release |


#### environment variables
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'
upload_url:
description: 'URL for uploading assets to the release'
runs:
using: 'node12'
main: 'dist/index.js'
Expand Down
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("upload_url", rel.upload_url);
} catch (error) {
setFailed(error.message);
}
Expand Down

0 comments on commit 1f8f474

Please sign in to comment.