fetch tags before checking them
This commit is contained in:
parent
ac7e412a9c
commit
1b25e1f3bf
|
@ -24,6 +24,9 @@ getNumber () {
|
||||||
|
|
||||||
REGEX='^build-[0-9]\+$'
|
REGEX='^build-[0-9]\+$'
|
||||||
|
|
||||||
|
# make sure we have all the tags
|
||||||
|
git fetch --tags
|
||||||
|
|
||||||
# check if current commit has a build tag
|
# check if current commit has a build tag
|
||||||
BUILD=$(git tag --points-at HEAD | grep -e "$REGEX")
|
BUILD=$(git tag --points-at HEAD | grep -e "$REGEX")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue