Added additional cli output
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
b1dfe5024f
commit
060d4761f9
@ -1,13 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -euo pipefail
|
echo "Starting release script"
|
||||||
|
|
||||||
CURRENTTAG=$(git tag --sort=-creatordate | head -n 1)
|
CURRENTTAG=$(git tag --sort=-creatordate | head -n 1)
|
||||||
PREVIOUSTAG=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
|
PREVIOUSTAG=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
|
||||||
echo "Diff: $PREVIOUSTAG..$CURRENTTAG"
|
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)
|
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
|
if [ "${PLUGIN_GITEA_DOMAIN:+set}" = set ]; then
|
||||||
|
echo "Detected gitea domain, creating release";
|
||||||
|
|
||||||
if [ "${PLUGIN_GITEA_APIKEY:-null}" = null ]; then
|
if [ "${PLUGIN_GITEA_APIKEY:-null}" = null ]; then
|
||||||
echo "No api key provided";
|
echo "No api key provided";
|
||||||
exit 1;
|
exit 1;
|
||||||
@ -39,6 +44,8 @@ if [ "${PLUGIN_GITEA_DOMAIN:+set}" = set ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${PLUGIN_MATRIX_SERVER:+set}" = set ]; then
|
if [ "${PLUGIN_MATRIX_SERVER:+set}" = set ]; then
|
||||||
|
echo "Detected matrix server, sending notification";
|
||||||
|
|
||||||
echo "Detected matrix server";
|
echo "Detected matrix server";
|
||||||
if [ "${PLUGIN_MATRIX_USER:-null}" = null ]; then
|
if [ "${PLUGIN_MATRIX_USER:-null}" = null ]; then
|
||||||
echo "No matrix username provided";
|
echo "No matrix username provided";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user