fix: use bash shell and remove bash-only substring expansion in pr-review

This commit is contained in:
Shaun Arman 2026-04-12 16:07:39 -05:00
parent 8f73a7d017
commit 1db1b20762

View File

@ -31,6 +31,7 @@ jobs:
- name: Analyze with Ollama - name: Analyze with Ollama
if: steps.diff.outputs.diff_size > '0' if: steps.diff.outputs.diff_size > '0'
shell: bash
env: env:
OLLAMA_URL: http://172.0.1.42:11434 OLLAMA_URL: http://172.0.1.42:11434
run: | run: |
@ -42,7 +43,6 @@ jobs:
--arg content "$PROMPT" \ --arg content "$PROMPT" \
'{model: $model, messages: [{role: "user", content: $content}], stream: false}') '{model: $model, messages: [{role: "user", content: $content}], stream: false}')
echo "Request body length: ${#BODY} bytes" echo "Request body length: ${#BODY} bytes"
echo "Request body (first 200 chars): ${BODY:0:200}"
echo "Calling Ollama API..." echo "Calling Ollama API..."
HTTP_CODE=$(curl -s -o /tmp/ollama_response.json -w "%{http_code}" \ HTTP_CODE=$(curl -s -o /tmp/ollama_response.json -w "%{http_code}" \
-X POST "$OLLAMA_URL/api/chat" \ -X POST "$OLLAMA_URL/api/chat" \