From aff336762384983c5d1e4c363dac2845b65d0d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20W=C3=B6lfer?= Date: Sat, 11 Apr 2026 15:07:49 +0200 Subject: [PATCH] chore: update git cliff version building --- scripts/bump.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/bump.sh b/scripts/bump.sh index 947aba6..27ffb52 100644 --- a/scripts/bump.sh +++ b/scripts/bump.sh @@ -2,8 +2,14 @@ set -euo pipefail -VERSION="$(git cliff --bumped-version)" -VERSION_CLEAN="${VERSION#v}" +VERSION_CLEAN="$(git cliff --bumped-version)" +if [[ ! $VERSION_CLEAN =~ ^[0-9] ]]; then + echo "Error: VERSION_CLEAN does not start with a number" + exit 1 +fi +VERSION="v${VERSION_CLEAN}" + + sed -i "s/^version = \".*\"/version = \"${VERSION_CLEAN}\"/" Cargo.toml cargo check