We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df2db57 commit f41d143Copy full SHA for f41d143
.github/workflows/maven-release.yml
@@ -72,8 +72,8 @@ jobs:
72
- name: Generate changelog
73
id: changelog
74
run: |
75
- # Get the previous tag
76
- PREVIOUS_TAG=$(git describe --abbrev=0 --tags HEAD^ 2>/dev/null || echo "")
+ # Get the previous tag (2nd most recent, since we just created the new tag)
+ PREVIOUS_TAG=$(git tag --sort=-creatordate | sed -n '2p')
77
78
if [ -z "$PREVIOUS_TAG" ]; then
79
CHANGELOG=$(git log --pretty=format:"* %s (%h)" --no-merges)
0 commit comments