File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ gh_bin=$(which gh)
2424if git tag --sort=committerdate | grep -q ^r; then
2525
2626 # get latest semantic version tag, construct patch+1
27- semantic_version=$( git tag --sort=-committerdate | grep ^r | grep -Po ' ^ r[0-9]*.[0-9]*.[0-9]*' | head -n1)
27+ semantic_version=$( git tag --sort=-committerdate | grep ^r | grep -Po ' r[0-9]*.[0-9]*.[0-9]*' | head -n1)
2828 [ -n " $semantic_version " ] || {
2929 echo " ERROR could not find semantic version rX.Y.Z"
3030 exit 3
3131 }
3232
33- major_minor=$( echo " " | cut -d' .' -f1-2)
34- patch=$semantic_version
33+ major_minor=$( echo " $semantic_version " | cut -d' .' -f1-2)
34+ patch=$( echo " $ semantic_version" | cut -d ' . ' -f3 )
3535 (( patch++ ))
3636 newtag=" ${major_minor} .${patch} "
3737else
You can’t perform that action at this time.
0 commit comments