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:
Julio Quinteros Pro
2026-03-01 14:47:04 -03:00
parent 1fdaa1588d
commit b4e0c4db07
+2 -2
View File
@@ -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')