dropshell release 2025.0526.2224
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 3m0s
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 3m0s
This commit is contained in:
parent
c8c0c3289c
commit
8eb652b84e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user