Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upload_url as action output #75

Merged
merged 2 commits into from Mar 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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