mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
prepare next version: update regexes (#14170)
# Objective - The post release version bump job failed: https://github.com/bevyengine/bevy/actions/runs/9799332118 - This is because main didn't update to 0.14 as that happened in a branch ## Solution - Update the regexes to work with the -dev suffix --------- Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
This commit is contained in:
parent
2968d4121b
commit
2553c3ade8
1 changed files with 3 additions and 3 deletions
6
.github/workflows/post-release.yml
vendored
6
.github/workflows/post-release.yml
vendored
|
@ -27,9 +27,9 @@ jobs:
|
|||
# Read the current version from Cargo.toml
|
||||
current_version=$(cargo metadata --format-version 1 --no-deps | \
|
||||
jq --raw-output '.packages | .[] | select(.name == "bevy").version')
|
||||
# Sanity check: current version should be 0.X.Y
|
||||
if ! grep -q '^0\.[0-9]\+\.[0-9]\+$' <<< "${current_version}"; then
|
||||
echo "Invalid version (not in 0.X.Y format): ${current_version}"
|
||||
# Sanity check: current version should be 0.X.Y-dev
|
||||
if ! grep -q '^0\.[0-9]\+\.[0-9]\+-dev$' <<< "${current_version}"; then
|
||||
echo "Invalid version (not in 0.X.Y-dev format): ${current_version}"
|
||||
exit 1
|
||||
fi
|
||||
minor_version=$(sed 's/^0\.\([0-9]\+\).*/\1/' <<< "${current_version}")
|
||||
|
|
Loading…
Reference in a new issue