We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8431d commit 5746ca7Copy full SHA for 5746ca7
branch-release/branch_release.sh
@@ -31,7 +31,7 @@ fi
31
TAG="$( echo "$GITHUB_REF" | sed -e 's/refs\/tags\///' )"
32
33
# Trim patch number from tag '19.3.11' => '19.3'
34
-RELEASE_NUM="$( echo "$TAG" | grep -oE '([0-9]+\.[0-9]+)' )"
+RELEASE_NUM="$( echo "$TAG" | grep -oE '(^[0-9]+\.[0-9]+)' )"
35
36
if [ -z "${RELEASE_NUM:-}" ]; then
37
echo "Tag does not appear to be for a release: ${TAG}" >&2
0 commit comments