Skip to content

Commit

Permalink
fix: Ensure that previous version fully matches the expected format
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed Nov 22, 2024
1 parent 3a7c64a commit 44ed00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linutil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44ed00a

Please sign in to comment.