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