mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
use improved versioning (#6691)
This commit is contained in:
@@ -31,8 +31,14 @@ parts:
|
|||||||
snapcraftctl pull
|
snapcraftctl pull
|
||||||
tag=$(git describe --tags --abbrev=0)
|
tag=$(git describe --tags --abbrev=0)
|
||||||
count=$(git rev-list $tag.. --count)
|
count=$(git rev-list $tag.. --count)
|
||||||
hash=$(git rev-parse --short HEAD)
|
if [ "$count" = 0 ];
|
||||||
snapcraftctl set-version $tag+git$count.$hash
|
then
|
||||||
|
version=$tag
|
||||||
|
else
|
||||||
|
hash=$(git rev-parse --short HEAD)
|
||||||
|
version=$tag+git$count.$hash
|
||||||
|
fi
|
||||||
|
snapcraftctl set-version $version
|
||||||
|
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
|
|||||||
Reference in New Issue
Block a user