You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.
The upload is successful, and the browser_download_url is returned ok (and have tested it downloads the asset OK via the browser), however the asset id value seems to be blank (see screenshot below).
I want to download the asset in a later job as part of CI tests via the github API (to access a draft release asset), for which I need the asset's ID. My workaround is to add additional code to get the asset ID manually via the API, which works but should be unnecessary if the asset id was returned to begin with.
Action Snippet:
- name: Create Releaseid: create_releaseuses: actions/create-release@latestenv:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own tokenwith:
tag_name: ${{ github.ref }}release_name: Release ${{ github.ref }}body: | Release generated by Github Actions automaticallydraft: trueprerelease: false
- name: Upload Release Assetid: release_assetuses: actions/upload-release-asset@v1.0.2env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. asset_path: ./files.zipasset_name: myfiles.zipasset_content_type: application/zip
- run: | echo "ASSET_ID IS ${{ steps.release_asset.outputs.id }}" echo "ASSET_BROWSER_DOWNLOAD_URL IS ${{ steps.release_asset.outputs.browser_download_url }}"
Output screenshot:
The text was updated successfully, but these errors were encountered:
The upload is successful, and the browser_download_url is returned ok (and have tested it downloads the asset OK via the browser), however the asset id value seems to be blank (see screenshot below).
I want to download the asset in a later job as part of CI tests via the github API (to access a draft release asset), for which I need the asset's ID. My workaround is to add additional code to get the asset ID manually via the API, which works but should be unnecessary if the asset id was returned to begin with.
Action Snippet:
Output screenshot:
The text was updated successfully, but these errors were encountered: