From 55e609cbf43c76570c7831c5122ab121fd5c2382 Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Sun, 23 Jan 2022 15:13:06 +0000 Subject: [PATCH] fix(ci): release tag semver check --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 180f95b1..9a8f957f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,12 +97,12 @@ jobs: - name: Check for semver tag id: semvercheck run: | - if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + if [[ ${{ github.ref }} =~ ^refs\/tags\/v0\.[0-9]+\.[0-9]+$ ]]; then MATCH=true else MATCH=false fi - if [[ ! ${{ github.ref }} =~ ^refs/tags/v0\. ]]; then + if [[ ${{ github.ref }} =~ ^refs\/tags\/v[1-9]+\.[0-9]+\.[0-9]+$ ]]; then MATCH=$MATCH_nonzero fi echo ::set-output name=match::$MATCH