Skip to content

Commit 8926b71

Browse files
committed
changes for new tag r1.1.1
1 parent b6a4918 commit 8926b71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

create_new_gh_release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ gh_bin=$(which gh)
2424
if 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}"
3737
else

0 commit comments

Comments
 (0)