Skip to content

Commit 5290514

Browse files
committed
fix changelog generation to remove unnecessary reverse flag in git log commands
1 parent 2f3c0ef commit 5290514

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
5757
if [ -z "$previous_tag" ]; then
5858
# If no previous tag, get all commits
59-
changelog=$(git log --pretty=format:"- %s (%h)" --reverse)
59+
changelog=$(git log --pretty=format:"- %s (%h)")
6060
else
6161
# Get commits since previous tag
62-
changelog=$(git log ${previous_tag}..HEAD --pretty=format:"- %s (%h)" --reverse)
62+
changelog=$(git log ${previous_tag}..HEAD --pretty=format:"- %s (%h)")
6363
fi
6464
6565
# Create the release body
@@ -94,9 +94,9 @@ jobs:
9494
previous_tag=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
9595
9696
if [ -z "$previous_tag" ]; then
97-
changelog=$(git log --pretty=format:"- %s (%h)" --reverse)
97+
changelog=$(git log --pretty=format:"- %s (%h)")
9898
else
99-
changelog=$(git log ${previous_tag}..HEAD --pretty=format:"- %s (%h)" --reverse)
99+
changelog=$(git log ${previous_tag}..HEAD --pretty=format:"- %s (%h)")
100100
fi
101101
102102
{

0 commit comments

Comments
 (0)