From 16d24de08dd5d5ca5cf4d559f9ca4b266179fe81 Mon Sep 17 00:00:00 2001 From: Keming Date: Thu, 25 Apr 2024 18:50:06 +0800 Subject: [PATCH] feat: change to use the full version tag with v-* prefix (#204) Signed-off-by: Keming --- .github/workflows/test.yml | 2 +- README.md | 2 +- action.yml | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d25dc5c..44373ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: - name: test explicit lychee version uses: ./ with: - lycheeVersion: 0.9.0 + lycheeVersion: v0.14.0 - name: test globs uses: ./ diff --git a/README.md b/README.md index f660e95..ae51581 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,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.15.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 9ba38da..067ef7a 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.15.0 + default: v0.15.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"