We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74835ea commit 9b69e69Copy full SHA for 9b69e69
1 file changed
hack/release/prepare.sh
@@ -40,9 +40,9 @@ if [[ -e ".git/refs/tags/$tag" ]]; then
40
fi
41
42
# check if there's a release branch of a higher version than what we want to release
43
-minor=$(echo "$version" | grep -oE '[0-9]{1,}$')
44
-nextMinor=$((minor + 1))
45
-nextMinorBranch="release-v$nextMinor"
+major=$(echo "$majorAndMinor" | grep -oE '^[0-9]{1,}')
+minor=$(echo "$majorAndMinor" | grep -oE '[0-9]{1,}$')
+nextMinorBranch="release-v$major.$((minor + 1))"
46
47
if [[ -e ".git/refs/tags/$nextMinorBranch" ]]; then
48
echo "RELEASE_AS_LATEST=false" | tee -a "$GITHUB_ENV"
0 commit comments