Updating basetag

This commit is contained in:
Sahil Ahuja 2025-02-05 19:21:17 +05:30
parent 5d3a8536f3
commit cd28dd385b

View File

@ -1,20 +1,20 @@
#!/bin/bash #!/bin/bash
## Creating new releases # #For a fresh repo / Creating new releases
# git add -A; # git add -A;
# git commit -m "<commit msg>" # git commit -m "<commit msg>"
# #Minor version # #Setting a tag
# git tag -a -m "<tag msg>" v1.0.1 # git tag -a -m "<tag msg>" v1.0.0
# git push --follow-tags # git push --follow-tags
# #Moving major version # #Moving a tag (eg: for major version retagging)
# git tag -fa v1 # git tag -fa v1
# git push --tags -f # git push --tags -f
# https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351 # Based on https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351
# Commit with a log containing #minor or #major to increment the respective version number
#get highest tag number containing at least 2 dots #get highest tag number containing at least 2 dots
VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.*\.*"` VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"`
#replace . with space so can split into an array #replace . with space so can split into an array
VERSION_BITS=(${VERSION//./ }) VERSION_BITS=(${VERSION//./ })