Skip to content

Commit

Permalink
chore: fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
EuleMitKeule committed May 4, 2023
1 parent 7f7bbc4 commit 08ec4fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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: |
Expand Down

0 comments on commit 08ec4fc

Please sign in to comment.