From a0de6be5048fa69478efca2b492da276963619eb Mon Sep 17 00:00:00 2001 From: Terry Brady Date: Mon, 23 Sep 2024 16:57:04 -0700 Subject: [PATCH] semantic tag handling --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 03b6bb4..dd081ed 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -10,7 +10,7 @@ phases: commands: - COMMIT=`git rev-parse --short HEAD` - # Get semantic tags for commit otherwise get all tags for commit, sort and choose the last value - - TAG=`(git tag --contains $COMMIT | egrep "^\d+\.\d+\.\d+$" || git tag --contains $COMMIT || echo '') | sort | tail -1` + - TAG=`(git tag --contains $COMMIT | egrep "^[0-9]+\.[0-9]+\.[0-9]+$" || git tag --contains $COMMIT || echo '') | sort | tail -1` - | if [[ "$MODE" == "OnPush" ]] then