From 2553c3ade850bb0a80df1c6f1a447be202635a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Mon, 8 Jul 2024 04:32:16 +0200 Subject: [PATCH] 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 --- .github/workflows/post-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index b9adb6f38e..1f30fe2428 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -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}")