From 09dbb9b4d44869bdcf8d27329605d25ca7192ed0 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 12 Oct 2023 14:38:59 +0200 Subject: [PATCH] Update GH actions --- .github/workflows/packages.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index b859e8cf2..e314a9673 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -25,7 +25,13 @@ jobs: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* git branch --remote --contains | grep origin/v3 - name: Set VERSION variable - run: echo "VERSION=3.0.0-preview.${{github.run_number}}" >> $GITHUB_ENV + run: | + if [[ "${{ github.ref }}" == refs/tags/* ]]; then + TAG_NAME=${{ github.ref }} # e.g., refs/tags/preview-740-hotfix-1 + TAG_NAME=${TAG_NAME#refs/tags/} # remove the refs/tags/ prefix + echo "VERSION=3.0.0-preview-${TAG_NAME}.${{github.run_number}}" >> $GITHUB_ENV + else + echo "VERSION=3.0.0-preview.${{github.run_number}}" >> $GITHUB_ENV - name: Build designer package working-directory: ./src/modules/Elsa.Workflows.Designer run: |