From b7d761222497bc34d7c3e7d6631e2b211ab939e4 Mon Sep 17 00:00:00 2001 From: akshayp7 Date: Sun, 25 Feb 2024 11:59:21 +0530 Subject: [PATCH] SlackNotifications --- .github/workflows/playwright.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 7518c9f..6a6846a 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -49,15 +49,10 @@ jobs: path: html-report.zip - name: Send Slack notification with artifact link - uses: peaceiris/actions-slack@v2 + uses: peaceiris/actions-slack@v3 with: - title: Playwright tests have completed - description: | - Playwright tests have completed successfully. HTML report is attached as an artifact. - You can download the report from the following link: - [Download HTML report](${{ github.server_url }}/${{ github.repository }}/actions/artifacts/html-report) + 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 - footer: ${{ github.event_name }} - author_icon: https://avatars.githubusercontent.com/u/44036562 webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file