mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
Use temp file for JSON result passing between steps
Avoids shell quoting issues with single quotes in JSON and multi-line output truncation when using GITHUB_OUTPUT. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1fdaa1588d
commit
b4e0c4db07
1 changed files with 2 additions and 2 deletions
4
.github/workflows/run_observatory_tests.yml
vendored
4
.github/workflows/run_observatory_tests.yml
vendored
|
|
@ -137,7 +137,7 @@ jobs:
|
|||
|
||||
if [ "$RUN_STATUS" = "completed" ] || [ "$RUN_STATUS" = "failed" ]; then
|
||||
echo "Test finished with status: $RUN_STATUS"
|
||||
echo "run_result=$STATUS" >> $GITHUB_OUTPUT
|
||||
echo "$STATUS" > /tmp/observatory_result.json
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
@ -149,7 +149,7 @@ jobs:
|
|||
|
||||
- name: Verify test results
|
||||
run: |
|
||||
RESULT='${{ steps.poll.outputs.run_result }}'
|
||||
RESULT=$(cat /tmp/observatory_result.json)
|
||||
echo "Full result: $RESULT"
|
||||
|
||||
STATUS=$(echo "$RESULT" | jq -r '.status')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue