From c1c0be2a61183671d9483c763a6a36c476385720 Mon Sep 17 00:00:00 2001 From: "Ware, Joseph (DLSLtd,RAL,LSCI)" Date: Fri, 15 Nov 2024 11:36:34 +0000 Subject: [PATCH] Fix regex semver matching --- .github/workflows/_container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_container.yml b/.github/workflows/_container.yml index b9f4ee13c..7833d83a1 100644 --- a/.github/workflows/_container.yml +++ b/.github/workflows/_container.yml @@ -19,7 +19,7 @@ jobs: - name: Validate SemVer2 version compliance if: startsWith(github.ref, 'refs/tags/') env: - SEMVER_REGEX: ^refs/tags/(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ + SEMVER_REGEX: ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ run: | ref="${{ github.ref_name }}"