From dc0a8a4ed0ed27a06bca85380ac2d370c8123eb1 Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Thu, 9 May 2024 22:06:59 +0300 Subject: [PATCH] fix(actions): Add name to slack github action --- .github/workflows/reusable-api-e2e.yml | 3 ++- .github/workflows/reusable-web-e2e.yml | 6 ++++-- .github/workflows/reusable-widget-e2e.yml | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable-api-e2e.yml b/.github/workflows/reusable-api-e2e.yml index f3a273f5cba..286c7602002 100644 --- a/.github/workflows/reusable-api-e2e.yml +++ b/.github/workflows/reusable-api-e2e.yml @@ -112,7 +112,8 @@ jobs: run: | cd apps/api && pnpm test - - uses: ./.github/actions/slack-notify-on-failure + - name: Send Slack notifications + uses: ./.github/actions/slack-notify-on-failure if: failure() with: slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }} diff --git a/.github/workflows/reusable-web-e2e.yml b/.github/workflows/reusable-web-e2e.yml index fe097576a1a..2a6d32eb858 100644 --- a/.github/workflows/reusable-web-e2e.yml +++ b/.github/workflows/reusable-web-e2e.yml @@ -185,7 +185,8 @@ jobs: path: playwright-report retention-days: 14 - - uses: ./.github/actions/slack-notify-on-failure + - name: Send Slack notifications + uses: ./.github/actions/slack-notify-on-failure if: failure() with: slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }} @@ -234,7 +235,8 @@ jobs: name: cypress-screenshots path: apps/web/cypress/screenshots - - uses: ./.github/actions/slack-notify-on-failure + - name: Send Slack notifications + uses: ./.github/actions/slack-notify-on-failure if: ${{ failure() || needs.e2e_web.result == 'failure' }} with: slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }} diff --git a/.github/workflows/reusable-widget-e2e.yml b/.github/workflows/reusable-widget-e2e.yml index 15a7937f9bd..9377c068543 100644 --- a/.github/workflows/reusable-widget-e2e.yml +++ b/.github/workflows/reusable-widget-e2e.yml @@ -112,7 +112,8 @@ jobs: name: cypress-videos path: apps/widget/cypress/videos - - uses: ./.github/actions/slack-notify-on-failure + - name: Send Slack notifications + uses: ./.github/actions/slack-notify-on-failure if: failure() with: slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }}