From 2cd6d9ad31d1c82f7e1ea9620469a906b95df39d Mon Sep 17 00:00:00 2001 From: Shameem Ahmed <54461265+ahmed-shameem@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:09:36 +0530 Subject: [PATCH] Update automatic tag creation validation for Minor Version (#3103) Till now we were considering a digit for tag for all versions. But it is possible that the minor version may go beyond 9, in that case the automatic tag creation workflow will fail at input tag validation step. This commit updates the validation to handle such cases Signed-off-by: Shameem Ahmed shmeeh@amazon.com --- .github/scripts/create-tag.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/create-tag.sh b/.github/scripts/create-tag.sh index fc7e11d2db..234905e944 100644 --- a/.github/scripts/create-tag.sh +++ b/.github/scripts/create-tag.sh @@ -37,9 +37,9 @@ fi # check the tag format (need manual update when necessary) format=BABEL_ -if ! [[ "$new" =~ "$format"[0-9]_[0-9]_[0-9] ]] +if ! [[ "$new" =~ "$format"[0-9]_[0-9]+_[0-9] ]] then - echo "Error: Invalid tag prefix, expected: ${format}__" + echo "Error: Invalid tag prefix, expected: ${format}__" exit 1 fi