mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-23 13:45:19 +00:00
fix: Ensure that previous version fully matches the expected format
This commit is contained in:
parent
3a7c64a37b
commit
44ed00add0
2
.github/workflows/linutil.yml
vendored
2
.github/workflows/linutil.yml
vendored
|
@ -42,7 +42,7 @@ jobs:
|
||||||
- name: Update package version
|
- name: Update package version
|
||||||
run: |
|
run: |
|
||||||
prev_version=$(grep 'version' Cargo.toml | head -n +1 | cut -d'"' -f2)
|
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"
|
echo "Could not accurately determine the previous version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user