Skip to content

Commit

Permalink
Sort tags based on semver ref name instead of date (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch authored Mar 4, 2024
1 parent 127434d commit 1016c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ is_major_selected() {

get_latest_tag() {
git fetch --prune --unshallow --tags --force # This is needed - without it no tags are found.
latest_tag=$(git tag --list 'v*' --sort=-creatordate | head -n1)
latest_tag=$(git tag --list 'v*' --sort=-v:refname | head -n1)
echo "${latest_tag}"
}

0 comments on commit 1016c2a

Please sign in to comment.