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/e2e.yml
+5-10Lines changed: 5 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -27,14 +27,9 @@ jobs:
27
27
path: playwright-report/
28
28
retention-days: 7
29
29
30
-
- name: GitHub Notification
30
+
- name: Slack Notification on Failure
31
31
if: failure()
32
-
uses: actions/github-script@v6
33
-
with:
34
-
script: |
35
-
github.issues.createComment({
36
-
issue_number: 1,
37
-
owner: context.repo.owner,
38
-
repo: context.repo.repo,
39
-
body: "🚨 Playwright tests failed after deployment!"
40
-
});
32
+
run: |
33
+
curl -X POST -H 'Content-type: application/json' \
34
+
--data '{"text":"🚨 Playwright tests failed after deployment to '${{ github.event.deployment_status.environment }}'. Check the reports for details."}' \
0 commit comments