-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust for new asset naming scheme #234
Adjust for new asset naming scheme #234
Conversation
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When the download failed, we should not just go on trying to un-tar a 404 error page. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The name of the `.tar` file is repeated multiple times, verbatim. This not only violates the Don't Repeat Yourself (DRY) principle, it also makes it easier to miss an instance when the file name changes (as it did with lycheeverse/lychee#1464). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Until version 0.15.1, the naming scheme of the release assets let them start with `lychee-<version>-`. This is no longer the case as of lycheeverse/lychee#1464, though, breaking the `lychee-action`. Since we need to allow using older versions, still, we are now stuck with a really ugly `case` construct, but this is still far better than having a broken GitHub Action. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This looks good. Just to document the behavior for future me, from what I can see, this change covers all four cases:
Thanks for the fix @dscho! |
As of lycheeverse/lychee-action#234, the default branch of https://github.com/lycheeverse/lychee-action has the fix and I do not need to refer to a commit that is reachable only in my own fork. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As of #1464, the naming scheme of the release assets has changed, breaking this here GitHub Action. Currently, this can only be seen with the
nightly
variant, but future releases oflychee
will see more severe breakages without this PR or something similar.