File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1- name : G-Analysis (Gemini AI Code Analysis & Review)
2-
1+ name : G-Analysis (Gemini AI Code Analysis)
32on :
43 workflow_dispatch : # Allows manual triggering of the action
54 inputs :
2524 - Lua
2625 - Makefile
2726 - Pascal
27+ - Perl
28+ - PHP
2829 - Powershell
2930 - Postscript
3031 - Purescript
31- - PHP
32- - Perl
3332 - Python
3433 - R
3534 - React
@@ -212,11 +211,16 @@ jobs:
212211
213212 PAYLOAD='{"contents": [{"parts": [{"text": "'"$PROMPT"'"}]}]}'
214213
214+ echo "DEBUG: API Request URL: $API_URL" # Debug URL
215+ echo "DEBUG: API Request Payload: $PAYLOAD" # Debug Payload
216+
215217 RESPONSE=$(curl -s -X POST \
216218 -H "Content-Type: application/json" \
217219 -d "$PAYLOAD" \
218220 "$API_URL")
219221
222+ echo "DEBUG: Raw API Response: $RESPONSE" # **Debug: Print Raw Response**
223+
220224 # Process API response and extract results
221225 if jq .candidates "$RESPONSE" > /dev/null 2>&1; then # Check if response is valid JSON
222226 ANALYSIS=$(echo "$RESPONSE" | jq -r '.candidates[0].content.parts[0].text')
You can’t perform that action at this time.
0 commit comments