dropshell release 2025.0526.2224
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 3m0s

This commit is contained in:
Your Name 2025-05-26 22:25:03 +12:00
parent c8c0c3289c
commit 8eb652b84e

View File

@ -72,14 +72,20 @@ RELEASE_DATA=$(cat <<EOF
EOF
)
RELEASE_ID=$(curl -s -X POST "$API_URL/releases" \
# Capture stdout and stderr of the curl command
CURL_OUTPUT=$(curl -X POST "$API_URL/releases" \
-H "Content-Type: application/json" \
-H "Authorization: token $TOKEN" \
-d "$RELEASE_DATA" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)
-d "$RELEASE_DATA" 2>&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