fix: Ensure that previous version fully matches the expected format

This commit is contained in:
Liam 2024-11-22 14:12:10 -08:00
parent 3a7c64a37b
commit 44ed00add0
No known key found for this signature in database

View File

@ -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