@@ -219,8 +219,11 @@ jobs:
219219 run : |
220220 filename=$(ls | grep -E '^[0-9]{12}_sdk_test_report\.xml$')
221221 test_output=$(python3 e2e_scripts/tod_scripts/generate_test_summary.py "${filename}")
222- test_output_encoded=$(echo -n "$test_output" | base64)
223- echo "summary=$test_output_encoded" >> "$GITHUB_OUTPUT"
222+ {
223+ echo 'summary<<EOF'
224+ echo "{$test_output}"
225+ echo EOF
226+ } >> "$GITHUB_OUTPUT"
224227
225228 notify-slack :
226229 runs-on : ubuntu-latest
@@ -259,19 +262,8 @@ jobs:
259262 - type: mrkdwn
260263 text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
261264
262- - name : Decode Test Summary
263- id : decode-test-summary
264- run : |
265- TEST_SUMMARY_ENCODED="${{ needs.process-upload-report.outputs.summary }}"
266- if [[ -n "$TEST_SUMMARY_ENCODED" ]]; then
267- TEST_SUMMARY=$(echo "$TEST_SUMMARY_ENCODED" | base64 --decode)
268- echo "TEST_SUMMARY=$TEST_SUMMARY" >> $GITHUB_ENV
269- else
270- echo "TEST_SUMMARY=No summary available." >> $GITHUB_ENV
271- fi
272-
273- - name : Debug Decoded Test Summary
274- run : echo "$TEST_SUMMARY"
265+ - name : Debug Test Summary
266+ run : echo "${{ needs.process-upload-report.outputs.summary }}"
275267
276268 - name : Test summary thread
277269 if : success()
@@ -282,4 +274,4 @@ jobs:
282274 payload : |
283275 channel: ${{ secrets.SLACK_CHANNEL_ID }}
284276 thread_ts: "${{ steps.main_message.outputs.ts }}"
285- text: "${{ env.TEST_SUMMARY }}"
277+ text: "${{ needs.process-upload-report.outputs.summary }}"
0 commit comments