Skip to content

Commit 7ffe172

Browse files
Merge pull request #92 from bytebase/a-branch-24
update
2 parents 6f009aa + f0f3407 commit 7ffe172

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Diff for: .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)