From e4236521f0b7a9db05b60b361f5468bbc94ccf92 Mon Sep 17 00:00:00 2001 From: Willy Date: Sun, 19 Feb 2023 00:00:36 +0100 Subject: [PATCH] fix is_prerelease --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4cae4ece..81c75fc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,7 @@ jobs: runs-on: ubuntu-latest outputs: is_release: ${{ steps.versions.outputs.is_release }} + is_prerelease: ${{ steps.versions.outputs.is_prerelease }} version: ${{ steps.versions.outputs.version }} go_version: 1.18.x node_version: 16.14.0 @@ -29,7 +30,7 @@ jobs: TAG=$(git describe --tags) if [ "${{ github.ref }}" = "refs/tags/$TAG" ]; then echo "is_release=true" >> $GITHUB_OUTPUT - if [[ $TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]$ ]]; then + if [[ $TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "is_prerelease=false" >> $GITHUB_OUTPUT else echo "is_prerelease=true" >> $GITHUB_OUTPUT