From 1431d1b0b9f68c1952f46f822523b0c92821f307 Mon Sep 17 00:00:00 2001 From: Matt Leader Date: Wed, 25 Oct 2023 15:10:07 -0400 Subject: [PATCH] regex version string (#116) --- .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