diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b88fdf3..f341733 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - name: test explicit lychee version uses: ./ with: - lycheeVersion: 0.9.0 + lycheeVersion: v0.9.0 - name: test globs uses: ./ diff --git a/README.md b/README.md index 044f185..d32e0bd 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ On top of that, the action also supports some additional arguments. | fail | `false` | Fail workflow run on error (i.e. when [lychee exit code][lychee-exit] is not 0). | | format | `markdown`, `json` | Summary output format. | | jobSummary | `false` | Write GitHub job summary (on Markdown output only). | -| lycheeVersion | `0.13.0` | Overwrite the lychee version to be used. | +| lycheeVersion | `v0.13.0`, `nightly` | Overwrite the lychee version to be used. | | output | `lychee/results.md` | Summary output file path. | | token | `""` | Custom GitHub token to use for API calls. | diff --git a/action.yml b/action.yml index 788201e..3208568 100644 --- a/action.yml +++ b/action.yml @@ -23,7 +23,7 @@ inputs: required: false lycheeVersion: description: "Use custom version of lychee link checker" - default: 0.13.0 + default: v0.13.0 required: false output: description: "Summary output file path" @@ -43,10 +43,10 @@ runs: - name: Install lychee run: | # Cleanup artifacts from previous run in case it crashed - rm -rf "lychee-v${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" lychee - curl -sLO "https://github.com/lycheeverse/lychee/releases/download/v${{ inputs.LYCHEEVERSION }}/lychee-v${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" - tar -xvzf "lychee-v${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" - rm "lychee-v${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz" + 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" install -t "$HOME/.local/bin" -D lychee rm lychee echo "$HOME/.local/bin" >> "$GITHUB_PATH"