From 44ed00add00b44d93dbbc0e62d8d98aef7d94923 Mon Sep 17 00:00:00 2001 From: Liam <33645555+lj3954@users.noreply.github.com> Date: Fri, 22 Nov 2024 14:12:10 -0800 Subject: [PATCH] fix: Ensure that previous version fully matches the expected format --- .github/workflows/linutil.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linutil.yml b/.github/workflows/linutil.yml index a133e112..9f1e5ee1 100644 --- a/.github/workflows/linutil.yml +++ b/.github/workflows/linutil.yml @@ -42,7 +42,7 @@ jobs: - name: Update package version run: | prev_version=$(grep 'version' Cargo.toml | head -n +1 | cut -d'"' -f2) - if ! echo "${prev_version}" | grep -q -E '[0-9]{2}\.[0-9]{2}\.[0-9]{2}'; then + if ! echo " ${prev_version} " | grep -q -E ' [0-9]{2}\.[0-9]{2}\.[0-9]{2} '; then echo "Could not accurately determine the previous version" exit 1 fi