From f653d022ca30fa73196a21a9b164e76576402160 Mon Sep 17 00:00:00 2001 From: mleader Date: Wed, 25 Oct 2023 14:48:39 -0400 Subject: [PATCH] regex version string --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b89209c..00a994f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -143,7 +143,7 @@ jobs: env: VERSION: ${{ github.ref_name }} run: | - [[ ${VERSION//[[:blank:]]/} =~ ^v[[:digit:]]+\.[[:digit:]]\.[[:digit:]]$ ]] && export OK="[INF] version format accepted" + [[ ${VERSION//[[:blank:]]/} =~ ^v[[:digit:]]+\.[[:digit:]]\.[[:digit:]](-[[:alnum:]]+)?(\+[[:alnum:]]+)?$ ]] && export OK="[INF] version format accepted" [[ -z $OK ]] && echo "[ERR] wrong version format: $VERSION" && exit 1 echo $OK - name: Check out code