From f9c74a3c98280aaec51a5e040f99964acc51f891 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 6 Aug 2023 00:55:04 +0200 Subject: [PATCH] Git tags lookup only works in Drone pipelines if tags have been pulled. --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index b08471a20c..8ff6914820 100644 --- a/.drone.yml +++ b/.drone.yml @@ -90,6 +90,7 @@ steps: - echo "--- Parsing metadata" - git config --global --add safe.directory $PWD + - git pull --tags - 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...v$VERSION | wc -l).$HEAD"