Skip to content

Commit f0f3407

Browse files
update
1 parent 6f009aa commit f0f3407

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/4-bb-export.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,17 @@ jobs:
6464
-o "$temp_file")
6565
6666
echo "Response (Status $http_code):"
67-
cat "$temp_file" | jq '.'
67+
echo "Raw response:"
68+
cat "$temp_file"
69+
70+
# Check if response is valid JSON
71+
if jq empty "$temp_file" 2>/dev/null; then
72+
echo "Valid JSON response:"
73+
cat "$temp_file" | jq '.'
74+
else
75+
echo "WARNING: Invalid JSON response"
76+
cat "$temp_file"
77+
fi
6878
echo "------------------------"
6979
7080
cat "$temp_file"

0 commit comments

Comments
 (0)