From 6ab3098ee1455be918147f8bd4271b8a7a7fe139 Mon Sep 17 00:00:00 2001 From: trfore Date: Mon, 1 Apr 2024 15:25:00 -0500 Subject: [PATCH] fix: version updater accepts two-digit semver --- .github/workflows/update_omada.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_omada.yml b/.github/workflows/update_omada.yml index df1e902..9fb8fcc 100644 --- a/.github/workflows/update_omada.yml +++ b/.github/workflows/update_omada.yml @@ -18,12 +18,12 @@ jobs: TARGET="https://static.tp-link.com/upload/software/.*.gz" latest_url=$(curl -s $URL | grep -om1 "${TARGET}") - latest_version=$(echo $latest_url | grep -o "[0-9]\.[0-9]\.[0-9][0-9]\?") + latest_version=$(echo $latest_url | grep -o "[0-9]\{1,2\}\.[0-9]\{1,2\}\.[0-9]\{1,2\}") echo "latest_url=$latest_url" >>$GITHUB_OUTPUT echo "latest_version=$latest_version" >>$GITHUB_OUTPUT current_url=$(>$GITHUB_OUTPUT echo "current_version=$current_version" >>$GITHUB_OUTPUT