summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2024-04-11 16:04:21 -0400
committerDevan Carpenter <devan@taler.net>2024-04-11 16:04:21 -0400
commit2a948f5830c15c092f1be8904b017c1c58f027c0 (patch)
treeae5818d163f799fe1dedff07c9ae550fbcb192ad
parent9e9d0f14f7e84c0e23ab707f9c5d49f400b66f84 (diff)
downloadsync-2a948f5830c15c092f1be8904b017c1c58f027c0.tar.gz
sync-2a948f5830c15c092f1be8904b017c1c58f027c0.tar.bz2
sync-2a948f5830c15c092f1be8904b017c1c58f027c0.zip
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
-rwxr-xr-xcontrib/ci/jobs/4-deb-package/version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ci/jobs/4-deb-package/version.sh b/contrib/ci/jobs/4-deb-package/version.sh
index a6e740a..52031b2 100755
--- 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