pass VERSION based on latest stable tag if we're not on a tag

pull/1118/head
Willy 2023-02-03 20:11:58 +01:00
parent c9a9d1f119
commit b46ce4a14b
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ jobs:
else else
echo "is_release=false" >> $GITHUB_OUTPUT echo "is_release=false" >> $GITHUB_OUTPUT
echo "is_prerelease=false" >> $GITHUB_OUTPUT echo "is_prerelease=false" >> $GITHUB_OUTPUT
TAG=$(git describe --tags --exclude '*-*')
fi fi
# this will be v1.2.3 for on-tag builds and v1.2.3-numberofcommits-sha for off-tag builds # 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 echo "version=$TAG" >> $GITHUB_OUTPUT