Skip to content

Commit 380ed71

Browse files
committed
gha test 13
1 parent 5517978 commit 380ed71

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ jobs:
227227
needs: [integration-tests, process-upload-report]
228228
if: ${{ (success() || failure()) }} # Run even if integration tests fail and only on main repository
229229
steps:
230-
- env:
231-
SUMMARY: ${{ needs.process-upload-report.outputs.summary }}
232-
run: echo "$SUMMARY"
233-
234230
- name: Notify Slack
235231
id: main_message
236232
uses: slackapi/slack-github-action@v2.0.0
@@ -263,12 +259,19 @@ jobs:
263259
- type: mrkdwn
264260
text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
265261
266-
- name: Debug Test Summary Output
262+
- name: Decode Test Summary
263+
id: decode-test-summary
267264
run: |
268-
echo "TEST_SUMMARY output from previous job:"
269-
echo "--------------------------------------"
270-
echo "${{ needs.process-upload-report.outputs.summary }}"
271-
echo "--------------------------------------"
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"
272275

273276
- name: Test summary thread
274277
if: success()
@@ -279,4 +282,4 @@ jobs:
279282
payload: |
280283
channel: ${{ secrets.SLACK_CHANNEL_ID }}
281284
thread_ts: "${{ steps.main_message.outputs.ts }}"
282-
text: "${{ needs.process-upload-report.outputs.summary }}"
285+
text: "${{ env.TEST_SUMMARY }}"

0 commit comments

Comments
 (0)