mirror of
https://github.com/softprops/action-gh-release.git
synced 2024-11-27 14:02:53 +03:00
Add upload_url as action output (#75)
* Add upload_url as action output * Update README
This commit is contained in:
parent
94651eb27f
commit
1f8f474abe
@ -193,6 +193,7 @@ The following outputs can be accessed via `${{ steps.<step-id>.outputs }}` from
|
|||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
|-------------|---------|-----------------------------------------------------------------|
|
|-------------|---------|-----------------------------------------------------------------|
|
||||||
| `url` | String | Github.com URL for the release |
|
| `url` | String | Github.com URL for the release |
|
||||||
|
| `upload_url`| String | URL for uploading assets to the release |
|
||||||
|
|
||||||
|
|
||||||
#### environment variables
|
#### environment variables
|
||||||
|
@ -35,6 +35,8 @@ env:
|
|||||||
outputs:
|
outputs:
|
||||||
url:
|
url:
|
||||||
description: 'URL to the Release HTML Page'
|
description: 'URL to the Release HTML Page'
|
||||||
|
upload_url:
|
||||||
|
description: 'URL for uploading assets to the release'
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
@ -55,6 +55,7 @@ async function run() {
|
|||||||
}
|
}
|
||||||
console.log(`🎉 Release ready at ${rel.html_url}`);
|
console.log(`🎉 Release ready at ${rel.html_url}`);
|
||||||
setOutput("url", rel.html_url);
|
setOutput("url", rel.html_url);
|
||||||
|
setOutput("upload_url", rel.upload_url);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setFailed(error.message);
|
setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user