fix is_prerelease

pull/1118/head
Willy 2023-02-19 00:00:36 +01:00
parent d673e4e22e
commit e4236521f0
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 2 additions and 1 deletions

View File

@ -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