From 562a7542f3855540b5369ea95bbf8f28337eb5f1 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 11 May 2023 19:26:07 +0200 Subject: [PATCH] fix(git): Switched from taggerdate to creatordate for latest recognition --- plugin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.sh b/plugin.sh index 9077f60..424dfc9 100644 --- a/plugin.sh +++ b/plugin.sh @@ -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)