Skip to content

Commit 7cd0af4

Browse files
authored
Merge commit from fork
1 parent 8ad54d3 commit 7cd0af4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

action.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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
@@ -87,6 +87,8 @@ runs:
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

0 commit comments

Comments
 (0)