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 + }