mirror of https://github.com/statping/statping
pass VERSION based on latest stable tag if we're not on a tag
parent
c9a9d1f119
commit
b46ce4a14b
|
@ -38,6 +38,7 @@ jobs:
|
|||
else
|
||||
echo "is_release=false" >> $GITHUB_OUTPUT
|
||||
echo "is_prerelease=false" >> $GITHUB_OUTPUT
|
||||
TAG=$(git describe --tags --exclude '*-*')
|
||||
fi
|
||||
# this will be v1.2.3 for on-tag builds and v1.2.3-numberofcommits-sha for off-tag builds
|
||||
echo "version=$TAG" >> $GITHUB_OUTPUT
|
||||
|
|
Loading…
Reference in New Issue