Skip to content

Commit

Permalink
fix: sort versions semantically
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
barmac committed Jun 13, 2023
1 parent 8079c01 commit d9ad4c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ fi
list_github_tags() {
git ls-remote --tags --refs "$GH_REPO" |
grep -o 'refs/tags/.*' | cut -d/ -f3- |
sort -V | # Sort versions
sed 's/^v//' # NOTE: You might want to adapt this sed to remove non-version strings from tags
}

Expand Down

0 comments on commit d9ad4c8

Please sign in to comment.