From 3c4f8c670c61adda55314576be902c9c1a3a6e36 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Fri, 12 Apr 2024 12:17:03 +0200 Subject: [PATCH] fix: Require `VERSION`in `bump-and-tag.bash` --- ci/scripts/bump-and-tag.bash | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ci/scripts/bump-and-tag.bash b/ci/scripts/bump-and-tag.bash index 660400bd3..a80dd5563 100644 --- a/ci/scripts/bump-and-tag.bash +++ b/ci/scripts/bump-and-tag.bash @@ -3,7 +3,7 @@ set -xeo pipefail # Release number -readonly version=${VERSION:-''} +readonly version=${VERSION:?input VERSION is required} # Dependencies' pattern readonly bump_deps_pattern=${BUMP_DEPS_PATTERN:-''} # Dependencies' version @@ -31,12 +31,7 @@ export GIT_COMMITTER_NAME=$git_user_name export GIT_COMMITTER_EMAIL=$git_user_email # Bump CMake project version -if [[ "$version" == '' ]]; then - # If no version has been specified, infer it using git-describe - printf '%s' "$(git describe)" > version.txt -else - printf '%s' "$version" > version.txt -fi +printf '%s' "$version" > version.txt # Propagate version change to Cargo.toml and Cargo.toml.in cmake . -DZENOHC_BUILD_IN_SOURCE_TREE=TRUE -DCMAKE_BUILD_TYPE=Release # Update Debian dependency of libzenohc-dev