diff --git a/.github/actions/slack/notify-on-failure.yml b/.github/actions/slack/notify-on-failure.yml deleted file mode 100644 index 3ff8f141d2d..00000000000 --- a/.github/actions/slack/notify-on-failure.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: 'Notify Slack on workflow failure' -runs: - using: "composite" - steps: - - name: Notify Slack Action - uses: ravsamhq/notify-slack-action@v2 - if: ${{ always() && github.ref_name == 'next' || github.ref_name == 'main' || github.ref_name == 'prod' }} - with: - footer: "Run: {run_url}\nCommit: {commit_url}" - message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" - notification_title: "{workflow} is now failing!" - notify_when: "failure" - status: "failure" - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }} diff --git a/.github/workflows/reusable-api-e2e.yml b/.github/workflows/reusable-api-e2e.yml index 17fb5b85f6a..b784cd75566 100644 --- a/.github/workflows/reusable-api-e2e.yml +++ b/.github/workflows/reusable-api-e2e.yml @@ -112,4 +112,4 @@ jobs: run: | cd apps/api && pnpm test - - uses: ./.github/actions/slack/notify-on-failure + - uses: ./.github/actions/slack-notify-on-failure diff --git a/.github/workflows/reusable-web-e2e.yml b/.github/workflows/reusable-web-e2e.yml index eda94cfdc2b..1a4b3f30ff4 100644 --- a/.github/workflows/reusable-web-e2e.yml +++ b/.github/workflows/reusable-web-e2e.yml @@ -18,6 +18,7 @@ on: required: false default: false type: boolean + type: string # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -185,7 +186,7 @@ jobs: path: playwright-report retention-days: 14 - - uses: ./.github/actions/slack/notify-on-failure + - uses: ./.github/actions/slack-notify-on-failure component_web: if: "!contains(github.event.head_commit.message, 'ci skip')" @@ -231,4 +232,4 @@ jobs: name: cypress-screenshots path: apps/web/cypress/screenshots - - uses: ./.github/actions/slack/notify-on-failure + - uses: ./.github/actions/slack-notify-on-failure diff --git a/.github/workflows/reusable-widget-e2e.yml b/.github/workflows/reusable-widget-e2e.yml index 22e3c82d49a..b6977afe151 100644 --- a/.github/workflows/reusable-widget-e2e.yml +++ b/.github/workflows/reusable-widget-e2e.yml @@ -112,4 +112,4 @@ jobs: name: cypress-videos path: apps/widget/cypress/videos - - uses: ./.github/actions/slack/notify-on-failure + - uses: ./.github/actions/slack-notify-on-failure