diff --git a/.github/actions/slack-notify-on-failure/action.yml b/.github/actions/slack-notify-on-failure/action.yml index 3ff8f141d2d..76254d6d1d7 100644 --- a/.github/actions/slack-notify-on-failure/action.yml +++ b/.github/actions/slack-notify-on-failure/action.yml @@ -1,4 +1,10 @@ name: 'Notify Slack on workflow failure' + +inputs: + slackWebhookURL: + required: true + type: string + runs: using: "composite" steps: @@ -12,4 +18,4 @@ runs: notify_when: "failure" status: "failure" env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }} + SLACK_WEBHOOK_URL: ${{ input.slackWebhookURL }} diff --git a/.github/workflows/reusable-api-e2e.yml b/.github/workflows/reusable-api-e2e.yml index b784cd75566..712fd654b90 100644 --- a/.github/workflows/reusable-api-e2e.yml +++ b/.github/workflows/reusable-api-e2e.yml @@ -113,3 +113,5 @@ jobs: cd apps/api && pnpm test - uses: ./.github/actions/slack-notify-on-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 ab5e1f3a821..908c7e42d96 100644 --- a/.github/workflows/reusable-web-e2e.yml +++ b/.github/workflows/reusable-web-e2e.yml @@ -186,6 +186,8 @@ jobs: retention-days: 14 - uses: ./.github/actions/slack-notify-on-failure + with: + slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }} component_web: if: "!contains(github.event.head_commit.message, 'ci skip')" @@ -232,3 +234,5 @@ jobs: path: apps/web/cypress/screenshots - uses: ./.github/actions/slack-notify-on-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 b6977afe151..2e0acd747e7 100644 --- a/.github/workflows/reusable-widget-e2e.yml +++ b/.github/workflows/reusable-widget-e2e.yml @@ -113,3 +113,5 @@ jobs: path: apps/widget/cypress/videos - uses: ./.github/actions/slack-notify-on-failure + with: + slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }}