commit c625f6799ea57abb9f1b85b65251e48ad077e5a2
parent d4fd038d116381d76d1fdf8384101f8fa901ffe5
Author: Devan Carpenter <devan@taler.net>
Date: Thu, 11 Apr 2024 16:01:06 -0400
ci: exclude dev tags from .deb version strings
this avoids a whole mess of problems with version string parsing and
selection with dpkg and gbh
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/ci/jobs/4-deb-package/version.sh b/contrib/ci/jobs/4-deb-package/version.sh
@@ -7,7 +7,7 @@ if [ -z "${BRANCH}" ]; then
else
# "Unshallow" our checkout, but only our current branch, and exclude the submodules.
git fetch --no-recurse-submodules --tags --depth=1000 origin "${BRANCH}"
- RECENT_VERSION_TAG=$(git describe --tags --match 'v*.*.*' --always --abbrev=0 HEAD || exit 1)
+ RECENT_VERSION_TAG=$(git describe --tags --match 'v*.*.*' --exclude '*-dev*' --always --abbrev=0 HEAD || exit 1)
commits="$(git rev-list ${RECENT_VERSION_TAG}..HEAD --count)"
if [ "${commits}" = "0" ]; then
git describe --tag HEAD | sed -r 's/^v//' || exit 1