diff --git a/action.yml b/action.yml index 8cdcb75..99246e2 100644 --- a/action.yml +++ b/action.yml @@ -1,3 +1,6 @@ +# note: keep asset names in sync with: +# https://github.com/lycheeverse/lychee/blob/master/.github/workflows/release.yml + name: "Lychee Broken Link Checker" description: "Quickly check links in Markdown, HTML, and text files" inputs: @@ -47,12 +50,10 @@ runs: - name: Install lychee run: | # Cleanup artifacts from previous run in case it crashed - rm -rf "lychee-${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" lychee - curl -sLO "https://github.com/lycheeverse/lychee/releases/download/${{ inputs.LYCHEEVERSION }}/lychee-${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" - tar -xvzf "lychee-${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" - rm "lychee-${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" + rm -rf lychee* || echo "No leftovers to clean up. Skipping." + curl -sL "https://github.com/lycheeverse/lychee/releases/download/${{ inputs.LYCHEEVERSION }}/lychee-x86_64-unknown-linux-gnu.tar.gz" | tar -xvzf - install -t "$HOME/.local/bin" -D lychee - rm lychee + rm -f lychee* echo "$HOME/.local/bin" >> "$GITHUB_PATH" shell: bash - name: Run lychee