Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version to 0.16.x, respect new tag names #249

Merged
merged 8 commits into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inputs:
required: false
lycheeVersion:
description: "Use custom version of lychee link checker"
default: v0.15.0
default: v0.16.1
mre marked this conversation as resolved.
Show resolved Hide resolved
required: false
output:
description: "Summary output file path"
Expand Down Expand Up @@ -60,8 +60,17 @@ runs:
# This determines the correct filename based on the version string.
if [[ '${{ inputs.lycheeVersion }}' =~ ^v0\.0|^v0\.1[0-5]\. ]]; then
echo "filename=lychee-${{ inputs.lycheeVersion }}-x86_64-unknown-linux-gnu.tar.gz" >> $GITHUB_OUTPUT
echo "tag=${{ inputs.lycheeVersion }}" >> $GITHUB_OUTPUT
else
echo "filename=lychee-x86_64-unknown-linux-gnu.tar.gz" >> $GITHUB_OUTPUT
# Each crate in the workspace has its own tag, so we need to specify the tag for the binary.
# The binary is released under the 'lychee' tag, the library under 'lychee-lib'.
# For nightly builds, we use the 'nightly' tag.
if [[ '${{ inputs.lycheeVersion }}' == 'nightly' ]]; then
echo "tag=${{ inputs.lycheeVersion }}" >> $GITHUB_OUTPUT
else
echo "tag=lychee-${{ inputs.lycheeVersion }}" >> $GITHUB_OUTPUT
fi
fi
shell: bash

Expand All @@ -75,7 +84,7 @@ runs:

- name: Download lychee
run: |
curl -sfLO "https://github.com/lycheeverse/lychee/releases/download/${{ inputs.lycheeVersion }}/${{ steps.lychee-filename.outputs.filename }}"
curl -sfLO "https://github.com/lycheeverse/lychee/releases/download/${{ steps.lychee-filename.outputs.tag }}/${{ steps.lychee-filename.outputs.filename }}"
shell: bash

- name: Extract lychee
Expand Down
Loading