From b46ce4a14be9c0a3877c249e5b5ece4098dd65c2 Mon Sep 17 00:00:00 2001 From: Willy Date: Fri, 3 Feb 2023 20:11:58 +0100 Subject: [PATCH] pass VERSION based on latest stable tag if we're not on a tag --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a2bcfba..f3b1f1d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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