fetch tags before checking them

This commit is contained in:
Jakub Sokołowski 2018-05-07 19:19:22 +02:00
parent ac7e412a9c
commit 1b25e1f3bf
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ getNumber () {
REGEX='^build-[0-9]\+$'
# make sure we have all the tags
git fetch --tags
# check if current commit has a build tag
BUILD=$(git tag --points-at HEAD | grep -e "$REGEX")