Skip to content

Commit 5746ca7

Browse files
authored
Fix regex for extracting version number from tag (#28)
1 parent 9f8431d commit 5746ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

branch-release/branch_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131
TAG="$( echo "$GITHUB_REF" | sed -e 's/refs\/tags\///' )"
3232

3333
# Trim patch number from tag '19.3.11' => '19.3'
34-
RELEASE_NUM="$( echo "$TAG" | grep -oE '([0-9]+\.[0-9]+)' )"
34+
RELEASE_NUM="$( echo "$TAG" | grep -oE '(^[0-9]+\.[0-9]+)' )"
3535

3636
if [ -z "${RELEASE_NUM:-}" ]; then
3737
echo "Tag does not appear to be for a release: ${TAG}" >&2

0 commit comments

Comments
 (0)