From ae3211b52ebaa2b849d31a6b04080f4d17012fe3 Mon Sep 17 00:00:00 2001 From: Andriy Biletsky Date: Thu, 22 Aug 2024 16:23:59 +0700 Subject: [PATCH] Fix GA workflow version retrieval --- .github/workflows/test-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index f76291c4..a8cdc8b9 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -89,10 +89,10 @@ jobs: - run: git branch - name: Retrieve release details - id: release + id: release_details run: | - echo "APP_NAME=$(git describe --tags|sed -e 's/\-v.*//')" >> $GITHUB_OUTPUT - echo "APP_VERSION=$(git describe --tags|sed 's/api-v\([0-9.]*\)-.*/\1/')" >> $GITHUB_OUTPUT + echo "APP_NAME=$(git describe --tags|sed -e 's/\-v.*//')" >> $GITHUB_ENV + echo "APP_VERSION=$(git describe --tags --match 'api-v*'|sed 's/api-v\([0-9.]*\)/\1/')" >> $GITHUB_ENV - name: Release details run: |