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