We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2bc80d commit 64ce223Copy full SHA for 64ce223
.github/workflows/bb-export.yml
@@ -76,17 +76,8 @@ jobs:
76
return 1
77
fi
78
79
- # Validate JSON response
80
- if ! python3 << 'EOF'
81
-import sys, json
82
-try:
83
- with open(sys.argv[1], 'r') as f:
84
- json.load(f)
85
-except json.JSONDecodeError as e:
86
- print(f'Invalid JSON: {str(e)}', file=sys.stderr)
87
- sys.exit(1)
88
-EOF
89
- "$temp_file" 2>/dev/null; then
+ # Validate JSON response using a simple Python command
+ if ! python3 -c "import json; json.load(open('$temp_file'))" 2>/dev/null; then
90
echo "Error: Invalid JSON response"
91
rm "$temp_file"
92
0 commit comments