diff --git a/action.yml b/action.yml index 43e78d0..8b4060a 100644 --- a/action.yml +++ b/action.yml @@ -48,7 +48,10 @@ runs: run: | # Cleanup artifacts from previous run in case it crashed rm -rf "lychee-${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" lychee - filename='${{ inputs.LYCHEEVERSION }}/lychee-${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz' + case '${{ inputs.LYCHEEVERSION }}' in + 0.0*|0.1[0-5].*) filename='${{ inputs.LYCHEEVERSION }}/lychee-${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz';; + *) filename='${{ inputs.LYCHEEVERSION }}/lychee-x86_64-unknown-linux-gnu.tar.gz' + esac curl -sfLO "https://github.com/lycheeverse/lychee/releases/download/${{ inputs.LYCHEEVERSION }}/$filename" tar -xvzf "$filename" rm "$filename"