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)