From 2bc2a8c9cdb8ec561e195223b61def57a1d406e3 Mon Sep 17 00:00:00 2001 From: jason plumb <75337021+breedx-splk@users.noreply.github.com> Date: Tue, 27 Sep 2022 13:32:09 -0700 Subject: [PATCH] add support for release candidate suffixes to the release script (#364) --- scripts/tag-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tag-release.sh b/scripts/tag-release.sh index 5486f523a..69f9d656b 100755 --- a/scripts/tag-release.sh +++ b/scripts/tag-release.sh @@ -23,7 +23,7 @@ fi release_version=$1 release_tag="v$1" -if [[ ! $release_version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] +if [[ ! $release_version =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$ ]] then echo "Invalid release version: $release_version" echo "Release version must follow the pattern major.minor.patch, e.g. 1.2.3"