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}")