From 515249a66a0a43d5f3a65ac793d14096a0fba437 Mon Sep 17 00:00:00 2001 From: nmanu1 Date: Fri, 27 Oct 2023 15:56:35 -0400 Subject: [PATCH] v0.0.0 should match --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ea94780e..670e460df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,3 +15,11 @@ jobs: COMMIT_MSG="${{ github.event.head_commit.message }}" COMMIT_TITLE="${COMMIT_MSG%%$'\n'*}" echo "${COMMIT_TITLE}" + if [[ $COMMIT_TITLE =~ ^v[0-9]+\.[0-9]+\.[0-9]+( \(#[0-9]+\))?$ ]] + then + echo "matched first regex" + fi + if [[ $COMMIT_TITLE =~ ^Version [0-9]+\.[0-9]+\.[0-9]+( \(#[0-9]+\))?$ ]] + then + echo "matched second regex" + fi