Skip to content

Commit

Permalink
Fixed version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoronin committed Nov 21, 2022
1 parent c84a91c commit b319e11
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ jobs:
with:
fetch-depth: 0

- name: Set version
- name: Set version for tag
if: github.ref_type == 'tag'
run: echo "version=$(git describe --tags --match 'v*')" >> $GITHUB_ENV

- name: Set version for branch
if: github.ref_type == 'branch'
run: echo "version=$(git describe --tags)" >> $GITHUB_ENV

- name: Build
Expand Down

0 comments on commit b319e11

Please sign in to comment.