Skip to content
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
8 changes: 5 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ fi

CHECKBOX=""
if [ "${INPUT_CHECKBOX}" = true ]; then
# Check if the version is higher than 0.18.1
if [ "$(lychee --version | head -n1 | cut -d" " -f4)" -lt 0.18.1 ]; then
echo "WARNING: 'checkbox' is not supported in lychee versions lower than 0.18.1. Continuing without 'checkbox'."
# Warn if the version is lower than 0.18.1
function version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; }
lychee_version="$(lychee --version | head -n1 | cut -d" " -f2)"
if version_lt "$lychee_version" "0.18.1"; then
echo "WARNING: 'checkbox' is not supported in lychee versions lower than 0.18.1 (current is $lychee_version). Continuing without 'checkbox'."
else
CHECKBOX="--mode task"
fi
Expand Down