epxlicitly search for prereleases (containing `-`)

pull/1118/head
Willy 2023-04-19 20:37:36 +02:00
parent 57a12cfbc9
commit 80dd517768
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 3 additions and 3 deletions

View File

@ -29,15 +29,15 @@ jobs:
id: versions
run: |
STABLE_TAG=$(git describe --tags --exclude '*-*')
TAG=$(git describe --tags)
BETA_TAG=$(git describe --tags --match '*-*')
if [ "${{ github.ref }}" = "refs/tags/$STABLE_TAG" ]; then
echo "is_release=true" >> $GITHUB_OUTPUT
echo "is_prerelease=false" >> $GITHUB_OUTPUT
echo "version=$STABLE_TAG" >> $GITHUB_OUTPUT
elif [ "${{ github.ref }}" = "refs/tags/$TAG" ]; then
elif [ "${{ github.ref }}" = "refs/tags/BETA_TAG" ]; then
echo "is_release=true" >> $GITHUB_OUTPUT
echo "is_prerelease=true" >> $GITHUB_OUTPUT
echo "version=$TAG" >> $GITHUB_OUTPUT
echo "version=BETA_TAG" >> $GITHUB_OUTPUT
else
echo "is_release=false" >> $GITHUB_OUTPUT
echo "is_prerelease=false" >> $GITHUB_OUTPUT