chore: update git cliff version building

This commit is contained in:
Lukas Wölfer
2026-04-11 15:07:49 +02:00
parent 1736aeb122
commit aff3367623

View File

@@ -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