@@ -87,23 +87,23 @@ jobs:
8787 cat "$JSON_PAYLOAD_PATH" || { echo "❌ files_payload.json not found"; exit 1; }
8888
8989 # Send POST and capture both body and status code
90- response=$(curl -s -w "\n%{http_code}" - X POST "$API_BASE/" \
91- -H "Authorization: Bearer $TOKEN" \
92- -H "Content-Type: application/json" \
93- --data-binary "@$JSON_PAYLOAD_PATH")
94-
95- # Split response into body and status code
96- body=$(echo "$response" | head -n -1)
97- status_code=$(echo "$response" | tail -n1)
98-
99- echo "🌐 HTTP status: $status_code"
100- echo "🌐 Response body:"
101- echo "$body" | jq . || echo "⚠️ Response is not valid JSON"
102-
103- # Check HTTP status
104- if [ "$status_code" -ne 200 ]; then
105- echo "❌ POST failed (HTTP $status_code)"
106- fi
90+ response=$(curl -s -X POST "$API_BASE/" \
91+ -H "Authorization: Bearer $TOKEN" \
92+ -H "Content-Type: application/json" \
93+ --data-binary "@$JSON_PAYLOAD_PATH")
94+
95+ # # Split response into body and status code
96+ # body=$(echo "$response" | head -n -1)
97+ # status_code=$(echo "$response" | tail -n1)
98+
99+ # echo "🌐 HTTP status: $status_code"
100+ # echo "🌐 Response body:"
101+ # echo "$body" | jq . || echo "⚠️ Response is not valid JSON"
102+
103+ # # Check HTTP status
104+ # if [ "$status_code" -ne 200 ]; then
105+ # echo "❌ POST failed (HTTP $status_code)"
106+ # fi
107107
108108 message=$(jq -r '.message' <<< "$response")
109109
0 commit comments