Added additional cli output
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Nicolai Ort 2023-11-10 14:56:09 +01:00
parent b1dfe5024f
commit 060d4761f9
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 8 additions and 1 deletions

View File

@ -1,13 +1,18 @@
#!/bin/sh
set -euo pipefail
echo "Starting release script"
CURRENTTAG=$(git tag --sort=-creatordate | head -n 1)
PREVIOUSTAG=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
echo "Diff: $PREVIOUSTAG..$CURRENTTAG"
echo "Generating changelog..."
ALLCHANGES=$(npx -y @philippdormann/changelogen@1.0.0 --from $PREVIOUSTAG --to $CURRENTTAG --no-output | sed 's/"/\\"/g' | tail -n +6)
echo "Changelog: $ALLCHANGES"
if [ "${PLUGIN_GITEA_DOMAIN:+set}" = set ]; then
echo "Detected gitea domain, creating release";
if [ "${PLUGIN_GITEA_APIKEY:-null}" = null ]; then
echo "No api key provided";
exit 1;
@ -39,6 +44,8 @@ if [ "${PLUGIN_GITEA_DOMAIN:+set}" = set ]; then
fi
if [ "${PLUGIN_MATRIX_SERVER:+set}" = set ]; then
echo "Detected matrix server, sending notification";
echo "Detected matrix server";
if [ "${PLUGIN_MATRIX_USER:-null}" = null ]; then
echo "No matrix username provided";