Skip to content

Commit

Permalink
fix: make git describe find the right tag with multiple choices
Browse files Browse the repository at this point in the history
* this should make sure git can find the right tag regardless of
  tag type or date ordering

Signed-off-by: Steve Arnold <[email protected]>
  • Loading branch information
sarnold committed Mar 23, 2024
1 parent 5fcb6cd commit af0ea97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
if: matrix.os == 'ubuntu-22.04'
id: get_version
run: |
echo "VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
echo "VERSION=$(git describe --abbrev=0 --tags --match 1*)" >> $GITHUB_ENV
echo ${{ env.VERSION }}
- name: Unset version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Get version
id: get_version
run: |
echo "VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
echo "VERSION=$(git describe --abbrev=0 --tags --match 1*)" >> $GITHUB_ENV
echo ${{ env.VERSION }}
- name: gitchangelog action step (debug)
Expand Down

0 comments on commit af0ea97

Please sign in to comment.