get latest tag without commit hash
This commit is contained in:
parent
4e546de18a
commit
95da14f1a2
2
build.sh
2
build.sh
@ -16,7 +16,7 @@ fi
|
|||||||
|
|
||||||
touch /build/previous_tag
|
touch /build/previous_tag
|
||||||
previous_tag=$(cat /build/previous_tag)
|
previous_tag=$(cat /build/previous_tag)
|
||||||
latest_tag=$(git describe --tags)
|
latest_tag=$(git describe --tag --abbrev=0)
|
||||||
|
|
||||||
[ "$previous_tag" = "$latest_tag" ] && exit 0
|
[ "$previous_tag" = "$latest_tag" ] && exit 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user