forked from platypush/platypush
Git tags lookup only works in Drone pipelines if tags have been pulled.
This commit is contained in:
parent
d887553211
commit
f9c74a3c98
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ steps:
|
||||||
|
|
||||||
- echo "--- Parsing metadata"
|
- echo "--- Parsing metadata"
|
||||||
- git config --global --add safe.directory $PWD
|
- git config --global --add safe.directory $PWD
|
||||||
|
- git pull --tags
|
||||||
- export VERSION=$(python setup.py --version)
|
- export VERSION=$(python setup.py --version)
|
||||||
- export HEAD=$(git log | head -1 | awk '{printf "%.8s", $2}')
|
- 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"
|
- export GIT_VERSION="$VERSION.r$(git log --pretty=oneline HEAD...v$VERSION | wc -l).$HEAD"
|
||||||
|
|
Loading…
Reference in a new issue