From c942ddefb86a5c86fe4eebc36a9f5ad7dc93f0ed Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Tue, 9 May 2023 22:36:23 +0200 Subject: [PATCH] Basic plugin bash --- plugin.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 plugin.sh diff --git a/plugin.sh b/plugin.sh new file mode 100644 index 0000000..38cd7a6 --- /dev/null +++ b/plugin.sh @@ -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) +