Closed guilhermeblanco closed 2 years ago
Yep I'm having the same issue.
@devedse Temporary solution is to pin the action to version 0.0.8, like this:
- name: Download release asset
id: download_asset
uses: dsaltares/fetch-gh-release-asset@0.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ needs.build.outputs.release_id }}
file: release_asset.jar
target: release_asset.jar
Yep that's what I did as well.
We have the same problem, workaround works. Regards Marco
Opening this as issue after suggested by author on https://github.com/dsaltares/fetch-gh-release-asset/pull/36#issuecomment-1102778318
This issue started happening once PR https://github.com/dsaltares/fetch-gh-release-asset/pull/36 got merged.
It seems that since we now assume a well-formed version as part of the
getRelease
function, it completely ignored the scenario where you may be downloading draft assets (which means release version is "untagged-XXX", for example:untagged-f8c3edf8af6344f60679
).What we experience now is a "Malformed version" error when attempting to download assets, as shown in the picture below.
Here is a sample that reflects how we do with drafts: