From d887553211bbad3ccd1a7e6583b89d9d3cfcc002 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 6 Aug 2023 00:48:20 +0200 Subject: [PATCH] Use `HEAD...v${VERSION}` to infer the git release number. --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d8b440b99..b08471a20 100644 --- a/.drone.yml +++ b/.drone.yml @@ -92,7 +92,7 @@ steps: - git config --global --add safe.directory $PWD - export VERSION=$(python setup.py --version) - export HEAD=$(git log | head -1 | awk '{printf "%.8s", $2}') - - export GIT_VERSION="$VERSION.r$(git log --pretty=oneline HEAD...$(git tag | tail -1) | wc -l).$HEAD" + - export GIT_VERSION="$VERSION.r$(git log --pretty=oneline HEAD...v$VERSION | wc -l).$HEAD" - export TAG_URL="https://git.platypush.tech/platypush/platypush/archive/v$VERSION.tar.gz" - export TAG_ARCHIVE="platypush-$VERSION.tar.gz" - export CHECKSUM=$(curl --silent https://git.platypush.tech/platypush/platypush/archive/master.tar.gz | sha512sum | awk '{print $1}')