fix(git): Switched from taggerdate to creatordate for latest recognition
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nicolai Ort 2023-05-11 19:26:07 +02:00
parent 0a2628d5c6
commit 562a7542f3
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -25,8 +25,8 @@ export GIT_COMMITTER_EMAIL=${DRONE_COMMIT_AUTHOR_EMAIL}
git fetch --tags
CURRENTTAG=$(git tag --sort=-taggerdate | head -n 1)
PREVIOUSTAG=$(git tag --sort=-taggerdate | head -n 2 | tail -n 1)
CURRENTTAG=$(git tag --sort=-creatordate | head -n 1)
PREVIOUSTAG=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
echo "$PREVIOUSTAG..$CURRENTTAG"
ALLCHANGES=$(npx -y @philippdormann/changelogen@0.7.6 --from $PREVIOUSTAG --to $CURRENTTAG --no-output | sed 's/"/\\"/g' | tail -n +6)