File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,17 +65,17 @@ runs:
6565 id : lychee-setup
6666 run : |
6767 # Determine filename and download URL based on version
68- if [[ '${{ inputs.lycheeVersion }}' =~ ^v0\.0|^v0\.1[0-5]\. ]]; then
69- FILENAME="lychee-${{ inputs.lycheeVersion } }-x86_64-unknown-linux-gnu.tar.gz"
70- DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/${{ inputs.lycheeVersion } }/${FILENAME}"
68+ if [[ "${LYCHEE_VERSION}" =~ ^v0\.0|^v0\.1[0-5]\. ]]; then
69+ FILENAME="lychee-${LYCHEE_VERSION }-x86_64-unknown-linux-gnu.tar.gz"
70+ DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/${LYCHEE_VERSION }/${FILENAME}"
7171 else
7272 FILENAME="lychee-x86_64-unknown-linux-gnu.tar.gz"
73- if [[ '${{ inputs.lycheeVersion }}' == 'nightly' ]]; then
73+ if [[ "${LYCHEE_VERSION}" == 'nightly' ]]; then
7474 DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/nightly/${FILENAME}"
75- elif [[ '${{ inputs.lycheeVersion }}' == 'latest' ]]; then
75+ elif [[ "${LYCHEE_VERSION}" == 'latest' ]]; then
7676 DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/latest/download/${FILENAME}"
7777 else
78- DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/lychee-${{ inputs.lycheeVersion } }/${FILENAME}"
78+ DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/lychee-${LYCHEE_VERSION }/${FILENAME}"
7979 fi
8080 fi
8181
8787
8888 # Output filename for use in later steps
8989 echo "filename=${FILENAME}" >> $GITHUB_OUTPUT
90+ env :
91+ LYCHEE_VERSION : ${{ inputs.lycheeVersion }}
9092 shell : bash
9193
9294 - name : Install lychee
You can’t perform that action at this time.
0 commit comments