Skip to content

Commit f41d143

Browse files
fix: correct changelog to show commits between releases (salesforce#97)
1 parent df2db57 commit f41d143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/maven-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
- name: Generate changelog
7373
id: changelog
7474
run: |
75-
# Get the previous tag
76-
PREVIOUS_TAG=$(git describe --abbrev=0 --tags HEAD^ 2>/dev/null || echo "")
75+
# Get the previous tag (2nd most recent, since we just created the new tag)
76+
PREVIOUS_TAG=$(git tag --sort=-creatordate | sed -n '2p')
7777
7878
if [ -z "$PREVIOUS_TAG" ]; then
7979
CHANGELOG=$(git log --pretty=format:"* %s (%h)" --no-merges)

0 commit comments

Comments
 (0)