Skip to content

Commit e671f29

Browse files
committed
gha test 10
1 parent 7c09125 commit e671f29

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ jobs:
173173
runs-on: ubuntu-latest
174174
needs: [integration-tests]
175175
if: always() #&& github.repository == 'linode/linode_api4-python' # Run even if integration tests fail and only on main repository
176+
output: ${{ steps.set-test-summary.outputs.summary }}
176177

177178
steps:
178179
- name: Checkout code
@@ -216,16 +217,18 @@ jobs:
216217
id: set-test-summary
217218
run: |
218219
filename=$(ls | grep -E '^[0-9]{12}_sdk_test_report\.xml$')
219-
summary=$(python3 e2e_scripts/tod_scripts/generate_test_summary.py "${filename}")
220-
echo "summary<<EOF" >> $GITHUB_OUTPUT
221-
echo "$summary" >> $GITHUB_OUTPUT
222-
echo "EOF" >> $GITHUB_OUTPUT
220+
test_output=$(python3 e2e_scripts/tod_scripts/generate_test_summary.py "${filename}")
221+
echo "summary=$test_output" >> "$GITHUB_OUTPUT"
223222
224223
notify-slack:
225224
runs-on: ubuntu-latest
226225
needs: [integration-tests, process-upload-report]
227226
if: ${{ (success() || failure()) }} # Run even if integration tests fail and only on main repository
228227
steps:
228+
- env:
229+
TEST_SUMMARY: ${{ needs.process-upload-report.outputs.summary}}
230+
run: echo "$TEST_SUMMARY"
231+
229232
- name: Notify Slack
230233
id: main_message
231234
uses: slackapi/slack-github-action@v2.0.0
@@ -274,4 +277,4 @@ jobs:
274277
payload: |
275278
channel: ${{ secrets.SLACK_CHANNEL_ID }}
276279
thread_ts: "${{ steps.main_message.outputs.ts }}"
277-
text: "${{ needs.process-upload-report.outputs.test_summary }}"
280+
text: "${{ $TEST_SUMMARY }}"

0 commit comments

Comments
 (0)