dsaltares / fetch-gh-release-asset

Github Action to download an asset from a Github release
MIT License
113 stars 70 forks source link

Change asset missing from error into warning #26

Closed ffMathy closed 2 years ago

ffMathy commented 3 years ago

Right now, if the asset is missing, an error is thrown:

[!] Release asset not found Release data: { "message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name" }

I am in a situation where the asset isn't always there, so I'd like an option to suppress that error, or perhaps we could just always turn it into a warning?

If people's pipelines rely on the asset being there, then their pipelines would fail anyway later in the process.

dsaltares commented 2 years ago

Closing, I think it'd be much better if this was supported at the github action level. See https://github.com/dsaltares/fetch-gh-release-asset/pull/27#issuecomment-975490613.