it is not all releases that have assets, so we need to account for that. for example, the release v0.15.7 has no assets so this action fails when downloading the melange binary.
the logic here is as follows (only when version latest-release is used):
get the last 20 releases from the github api.
finds the first one that has assets (latest release with assets).
uses it as the latest-release version.
[!NOTE]
maybe generate assets always or flagging releases without assets as pre-releases would make things easier.
it is not all releases that have assets, so we need to account for that. for example, the release v0.15.7 has no assets so this action fails when downloading the melange binary.
the logic here is as follows (only when version
latest-release
is used):latest-release
version.