Skip to content

Commit

Permalink
Merge pull request #15 from cbrgm/fix-workflow
Browse files Browse the repository at this point in the history
fix(ci): sort semver version
  • Loading branch information
cbrgm authored Dec 13, 2023
2 parents a45d5ee + 1823ba2 commit b2c1282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
id: current
run: |
git fetch --tags
latest_tag=$(git tag --sort=taggerdate | tail -n 1)
latest_tag=$(git tag | sort -V | tail -n 1)
echo "current version is: $latest_tag"
echo "latest_tag=$latest_tag" >> $GITHUB_ENV
Expand All @@ -55,7 +55,7 @@ jobs:
- name: Publish Git Tag
run: |
git fetch --tags
latest_tag=$(git tag --sort=taggerdate | tail -n 1)
latest_tag=$(git tag | sort -V | tail -n 1)
new_tag=${{ steps.bump-semver.outputs.new_version }}
if [[ $(git rev-list $latest_tag..HEAD --count) -gt 0 ]]; then
git config user.name "GitHub Actions"
Expand Down

0 comments on commit b2c1282

Please sign in to comment.