Basic plugin bash

This commit is contained in:
Nicolai Ort 2023-05-09 22:36:23 +02:00
parent 9b0702e02f
commit c942ddefb8
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

9
plugin.sh Normal file
View File

@ -0,0 +1,9 @@
#!/busybox/sh
set -euo pipefail
git fetch
CURRENTTAG=$(git tag --sort=-taggerdate | head -n 1)
PREVIOUSTAG=$(git tag --sort=-taggerdate | head -n 2 | tail -n 1)
ALLCHANGES=$(npx -y @philippdormann/changelogen@latest --from $PREVIOUSTAG --to $CURRENTTAG --no-output | sed 's/"/\\"/g' | tail -n +6)