Skip to content

Commit

Permalink
Merge pull request #52 from tj-actions/chore/sort-latest-tags-first
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Dec 4, 2022
2 parents 7058457 + 051399c commit 12b56fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git fetch "$INPUTS_REMOTE" +refs/tags/*:refs/tags/*
NEW_TAG=${GITHUB_REF/refs\/tags\//}
MAJOR_VERSION=$(echo "$NEW_TAG" | cut -d. -f1)

for tag in $(git tag -l "$MAJOR_VERSION.*"); do
for tag in $(git tag -l --sort=-version:refname "$MAJOR_VERSION.*"); do
echo "Adding $tag to release notes"
{
echo "# Changes in $tag"
Expand Down

0 comments on commit 12b56fe

Please sign in to comment.