Skip to content

Commit

Permalink
fix: add asset id as outputs.id to action (#1)
Browse files Browse the repository at this point in the history
* fix: add 'id' to output, as documented in README

Co-authored-by: Mario Reggiori <[email protected]>

* chore: add compiled output

---------

Co-authored-by: Mario Reggiori <[email protected]>
  • Loading branch information
birjj and marioreggiori authored Mar 1, 2024
1 parent 164f059 commit e615d29
Show file tree
Hide file tree
Showing 5 changed files with 29,058 additions and 9,143 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
asset_content_type: application/zip
```
This will upload a release artifact to an existing release, outputting the `browser_download_url` for the asset which could be handled by a third party service, or by GitHub Actions for additional uses. For more information, see the GitHub Documentation for the [upload a release asset](https://developer.github.com/v3/repos/releases/#upload-a-release-asset) endpoint.
This will upload a release artifact to an existing release, outputting the `id` and `browser_download_url` for the asset which could be handled by a third party service, or by GitHub Actions for additional uses. For more information, see the GitHub Documentation for the [upload a release asset](https://developer.github.com/v3/repos/releases/#upload-a-release-asset) endpoint.

## Contributing
We would love you to contribute to `@birjj/upload-release-asset`, pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ inputs:
description: 'The content-type of the asset you want to upload. See the supported Media Types here: https://www.iana.org/assignments/media-types/media-types.xhtml for more information'
required: true
outputs:
id:
description: 'The ID of the asset'
browser_download_url:
description: 'The URL users can navigate to in order to download the uploaded asset'
runs:
Expand Down
Loading

0 comments on commit e615d29

Please sign in to comment.