diff --git a/version.sh b/version.sh index 843bf20..f8413eb 100755 --- a/version.sh +++ b/version.sh @@ -1,5 +1,5 @@ #!/bin/bash - +# You can pass --force as first parameter to force push and tag creation. BASE_VERSION="v1.6" TODAYS_VERSION="1" @@ -7,8 +7,8 @@ VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION" echo "Creating tag $VERSION" -git tag $VERSION +git tag $VERSION $1 echo "Pushing tag" -git push origin $VERSION +git push origin $VERSION $1