Updating basetag
This commit is contained in:
parent
5d3a8536f3
commit
cd28dd385b
14
basetag.sh
14
basetag.sh
@ -1,20 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Creating new releases
|
||||
|
||||
# #For a fresh repo / Creating new releases
|
||||
# git add -A;
|
||||
# git commit -m "<commit msg>"
|
||||
# #Minor version
|
||||
# git tag -a -m "<tag msg>" v1.0.1
|
||||
# #Setting a tag
|
||||
# git tag -a -m "<tag msg>" v1.0.0
|
||||
# git push --follow-tags
|
||||
# #Moving major version
|
||||
# #Moving a tag (eg: for major version retagging)
|
||||
# git tag -fa v1
|
||||
# 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
|
||||
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
|
||||
VERSION_BITS=(${VERSION//./ })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user