forked from BigfootDev/flatbuffers
use improved versioning (#6691)
This commit is contained in:
@@ -31,8 +31,14 @@ parts:
|
||||
snapcraftctl pull
|
||||
tag=$(git describe --tags --abbrev=0)
|
||||
count=$(git rev-list $tag.. --count)
|
||||
if [ "$count" = 0 ];
|
||||
then
|
||||
version=$tag
|
||||
else
|
||||
hash=$(git rev-parse --short HEAD)
|
||||
snapcraftctl set-version $tag+git$count.$hash
|
||||
version=$tag+git$count.$hash
|
||||
fi
|
||||
snapcraftctl set-version $version
|
||||
|
||||
|
||||
apps:
|
||||
|
||||
Reference in New Issue
Block a user