mirror of https://github.com/statping/statping
fix is_prerelease
parent
d673e4e22e
commit
e4236521f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue