From 3b5080d96305029ff524536e697fb5bd31cddf92 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 10 May 2023 20:24:44 +0200 Subject: [PATCH] add echos for better debugging --- plugin.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin.sh b/plugin.sh index e69ac71..b444b15 100644 --- a/plugin.sh +++ b/plugin.sh @@ -37,6 +37,7 @@ if [ "${PLUGIN_GITEA_DOMAIN:+set}" = set ]; then exit 1; fi if [ "${PLUGIN_REPO:-null}" = null ]; then + echo "Falling back to drone repo name"; PLUGIN_REPO=$CI_REPO_NAME fi @@ -50,8 +51,10 @@ if [ "${PLUGIN_GITEA_DOMAIN:+set}" = set ]; then \"draft\": false, \"tag_name\": \"$CURRENTTAG\" }" + echo "Release created"; fi if [ "${PLUGIN_MATRIX_SERVER:+set}" = set ]; then + echo "Detected matrix server"; if [ "${PLUGIN_MATRIX_USER:-null}" = null ]; then echo "No matrix username provided"; exit 3; @@ -83,4 +86,5 @@ if [ "${PLUGIN_MATRIX_SERVER:+set}" = set ]; then \"format\": \"org.matrix.custom.html\", \"formatted_body\": \"$FORMATTED_CHANGES\" }" + echo "Notification sent"; fi \ No newline at end of file