Skip to content

Commit

Permalink
Fix getting tags by sorting them
Browse files Browse the repository at this point in the history
  • Loading branch information
she11sh0cked committed May 24, 2020
1 parent 7bcf1b9 commit d95c259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/BuildPreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Git fetch tags
run: git fetch --tags
- name: Set CURRENT_VERSION
run: echo "::set-env name=CURRENT_VERSION::$(git tag -l | tail -2 | head -n 1)"
run: echo "::set-env name=CURRENT_VERSION::$(git tag -l --sort version:refname | tail -2 | head -n 1)"
- name: Set NEXT_VERSION
run: echo "::set-env name=NEXT_VERSION::$(git tag -l | tail -1)"
run: echo "::set-env name=NEXT_VERSION::$(git tag -l --sort version:refname | tail -1)"
- name: Set RELEASE_NOTES
run: |
release_notes="$(git log ${{ env.CURRENT_VERSION }}..${{ env.NEXT_VERSION }} --pretty=format:'- %s (%an)')"
Expand Down

0 comments on commit d95c259

Please sign in to comment.