From ae00abeb690d757d0cd75a1e8deb571fa1a891d6 Mon Sep 17 00:00:00 2001 From: Ba Thien Le Date: Tue, 22 Aug 2023 14:09:53 +0200 Subject: [PATCH] fix: regex for matching prerelease (Cytomine-ULiege/Cytomine-core-spring#18) --- .github/workflows/create-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index b1582e2f..4ca26998 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -48,7 +48,7 @@ jobs: steps: - name: Prerelease check run: | - if [[ ${{ github.ref_name }} =~ ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$ ]]; then + if [[ ${{ github.ref_name }} =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then echo "prerelease=false" >> $GITHUB_ENV else echo "prerelease=true" >> $GITHUB_ENV @@ -112,4 +112,4 @@ jobs: }); } catch (error) { core.setFailed(error.message); - } \ No newline at end of file + }