File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,17 @@ runs:
65
65
id : lychee-setup
66
66
run : |
67
67
# 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}"
71
71
else
72
72
FILENAME="lychee-x86_64-unknown-linux-gnu.tar.gz"
73
- if [[ '${{ inputs.lycheeVersion }}' == 'nightly' ]]; then
73
+ if [[ "${LYCHEE_VERSION}" == 'nightly' ]]; then
74
74
DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/nightly/${FILENAME}"
75
- elif [[ '${{ inputs.lycheeVersion }}' == 'latest' ]]; then
75
+ elif [[ "${LYCHEE_VERSION}" == 'latest' ]]; then
76
76
DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/latest/download/${FILENAME}"
77
77
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}"
79
79
fi
80
80
fi
81
81
87
87
88
88
# Output filename for use in later steps
89
89
echo "filename=${FILENAME}" >> $GITHUB_OUTPUT
90
+ env :
91
+ LYCHEE_VERSION : ${{ inputs.lycheeVersion }}
90
92
shell : bash
91
93
92
94
- name : Install lychee
You can’t perform that action at this time.
0 commit comments