Fix browser_download_url Update README.md

This commit is contained in:
Alejandro Alvarez 2024-08-28 07:57:13 +02:00 committed by GitHub
parent 9a28f2423f
commit 3b7ffef471
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,7 +213,7 @@ The following outputs can be accessed via `${{ steps.<step-id>.outputs }}` from
| `upload_url` | String | URL for uploading assets to the release | | `upload_url` | String | URL for uploading assets to the release |
| `assets` | String | JSON array containing information about each uploaded asset, in the format given [here](https://docs.github.com/en/rest/releases/assets#get-a-release-asset) (minus the `uploader` field) | | `assets` | String | JSON array containing information about each uploaded asset, in the format given [here](https://docs.github.com/en/rest/releases/assets#get-a-release-asset) (minus the `uploader` field) |
As an example, you can use `${{ fromJSON(steps.<step-id>.outputs.assets)[0].browser_download_url }}` to get the download URL of the first asset. As an example, you can use `${{ fromJSON(steps.<step-id>.outputs.assets)[0].upload_url }}` to get the download URL of the first asset.
#### environment variables #### environment variables