Skip to content

Commit 197e2e7

Browse files
Add Slack notification on early daily test failure (#593) (#594)
1 parent 86502a2 commit 197e2e7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/daily-test-matrix.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,20 @@ jobs:
444444
echo "targeted-tests=[]" >> $GITHUB_OUTPUT
445445
fi
446446
447+
notify-on-early-failure:
448+
name: Notify on Early Failure
449+
needs: calculate-test-matrix
450+
runs-on: ubuntu-22.04
451+
if: always() && needs.calculate-test-matrix.result != 'success'
452+
steps:
453+
- name: Send Slack notification on early failure
454+
continue-on-error: true
455+
uses: ./.github/actions/theme-slack-notification-daily-tests
456+
with:
457+
CLOUD_SLACK_BOT_TOKEN: ${{ secrets.CLOUD_SLACK_BOT_TOKEN }}
458+
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
459+
SLACK_CHANNEL: '#tmz-alerts'
460+
447461
trigger-targeted-tests:
448462
name: Trigger Targeted Tests
449463
needs: [calculate-test-matrix]

0 commit comments

Comments
 (0)