Skip to content

Commit 3c94fe5

Browse files
authored
Update G-Analysis.yml
1 parent 2f3f8b6 commit 3c94fe5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/G-Analysis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: G-Analysis (Gemini AI Code Analysis & Review)
2-
1+
name: G-Analysis (Gemini AI Code Analysis)
32
on:
43
workflow_dispatch: # Allows manual triggering of the action
54
inputs:
@@ -25,11 +24,11 @@ on:
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')

0 commit comments

Comments
 (0)