Skip to content

Commit

Permalink
changes for new tag r1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rnemeth90 committed Feb 13, 2023
1 parent b6a4918 commit 8926b71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create_new_gh_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ gh_bin=$(which gh)
if git tag --sort=committerdate | grep -q ^r; then

# get latest semantic version tag, construct patch+1
semantic_version=$(git tag --sort=-committerdate | grep ^r | grep -Po '^r[0-9]*.[0-9]*.[0-9]*' | head -n1)
semantic_version=$(git tag --sort=-committerdate | grep ^r | grep -Po 'r[0-9]*.[0-9]*.[0-9]*' | head -n1)
[ -n "$semantic_version" ] || {
echo "ERROR could not find semantic version rX.Y.Z"
exit 3
}

major_minor=$(echo "" | cut -d'.' -f1-2)
patch=$semantic_version
major_minor=$(echo "$semantic_version" | cut -d'.' -f1-2)
patch=$(echo "$semantic_version" | cut -d'.' -f3)
((patch++))
newtag="${major_minor}.${patch}"
else
Expand Down

0 comments on commit 8926b71

Please sign in to comment.