From 08ec4fcc7ba1ba20a69cdbc18292e8ab62c24991 Mon Sep 17 00:00:00 2001 From: Lennard Beers Date: Fri, 5 May 2023 01:18:22 +0200 Subject: [PATCH] chore: fix versioning --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b927e26..c66f813 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,11 +16,13 @@ jobs: runs-on: ubuntu-latest outputs: version: ${{ steps.set_output.outputs.data }} + env: + VERSION: "" steps: - name: Get version from release if: github.event_name == 'release' run: | - export VERSION=$(echo ${{ github.event.release.tag_name }}) + echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV - name: Get version from API if: github.event_name == 'workflow_dispatch' @@ -34,7 +36,7 @@ jobs: - name: Parse API response if: github.event_name == 'workflow_dispatch' run: | - export VERSION=$(echo ${{ steps.release_api.outputs.data }} | jq -r '.tag_name') + echo "VERSION=$(echo ${{ steps.release_api.outputs.data }} | jq -r '.tag_name')" >> $GITHUB_ENV - name: Log version run: |