You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/tests-e2e.yml
+20
Original file line number
Diff line number
Diff line change
@@ -50,3 +50,23 @@ jobs:
50
50
include_passed: true
51
51
annotate_notice: true
52
52
job_name: "e2e tests"
53
+
54
+
- name: Notify Slack on failure
55
+
if: failure() && github.event_name == 'schedule'
56
+
uses: actions/github-script@v6
57
+
with:
58
+
script: |
59
+
const webhookUrl = process.env.SLACK_WEBHOOK_URL;
60
+
const payload = {
61
+
username: "GitHub Actions",
62
+
text: `E2E tests failed in the repository: <https://github.com/${context.repo.owner}/${context.repo.repo}|${context.repo.owner}/${context.repo.repo}>. Please check the details.`
0 commit comments