Skip to content

Commit

Permalink
SlackNotifications
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayp7 committed Feb 25, 2024
1 parent b7d7612 commit f2f471e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ jobs:
path: html-report.zip

- name: Send Slack notification with artifact link
uses: peaceiris/actions-slack@v3
uses: "https://github.com/marketplace/actions/slack-action"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
text: "Playwright tests have completed successfully. HTML report is attached as an artifact. You can download it [here](${{ github.server_url }}/${{ github.repository }}/actions/artifacts/html-report)"
channel: "#playwright-test-reports"
author_name: GitHub Actions
color: good
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
args: |
{"text": "Playwright tests have completed successfully. HTML report is attached as an artifact. You can download it [here](${{ github.server_url }}/${{ github.repository }}/actions/artifacts/html-report)"}

0 comments on commit f2f471e

Please sign in to comment.