diff options
author | Devan Carpenter <devan@taler.net> | 2024-04-11 16:08:38 -0400 |
---|---|---|
committer | Devan Carpenter <devan@taler.net> | 2024-04-11 16:08:38 -0400 |
commit | 16405fe33ef1e45a7038df9ba66ba88cf0042c6c (patch) | |
tree | 46ab3a52209ca80a6dbf421366504b50764de088 /contrib/ci/jobs | |
parent | 6302dfb7476acda38b3ffefff47e3792865341a3 (diff) | |
download | wallet-core-16405fe33ef1e45a7038df9ba66ba88cf0042c6c.tar.xz |
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 (limited to 'contrib/ci/jobs')
-rwxr-xr-x | contrib/ci/jobs/3-wallet-cli-deb-package/version.sh | 2 | ||||
-rwxr-xr-x | contrib/ci/jobs/4-taler-harness-deb-package/version.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ci/jobs/3-wallet-cli-deb-package/version.sh b/contrib/ci/jobs/3-wallet-cli-deb-package/version.sh index a6e740af0..52031b23a 100755 --- a/contrib/ci/jobs/3-wallet-cli-deb-package/version.sh +++ b/contrib/ci/jobs/3-wallet-cli-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 diff --git a/contrib/ci/jobs/4-taler-harness-deb-package/version.sh b/contrib/ci/jobs/4-taler-harness-deb-package/version.sh index a6e740af0..52031b23a 100755 --- a/contrib/ci/jobs/4-taler-harness-deb-package/version.sh +++ b/contrib/ci/jobs/4-taler-harness-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 |