From 8eb652b84e79caf68294ed9c41816e18abaa9f83 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 May 2025 22:25:03 +1200 Subject: [PATCH] dropshell release 2025.0526.2224 --- source/publish.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/publish.sh b/source/publish.sh index 407d8bf..2a22d18 100755 --- a/source/publish.sh +++ b/source/publish.sh @@ -72,14 +72,20 @@ RELEASE_DATA=$(cat <&1) + +# Extract the release ID from the captured output +RELEASE_ID=$(echo "$CURL_OUTPUT" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2) if [ -z "$RELEASE_ID" ]; then echo "Failed to create release on Gitea." >&2 echo "Release ID returned: $RELEASE_ID" >&2 + echo "Curl Output/Error:" >&2 + echo "$CURL_OUTPUT" >&2 exit 1 fi