From 3d345cdba271a83a64206ee543a3f0ae8c0add0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Best?= Date: Tue, 31 Dec 2024 22:48:29 +0000 Subject: [PATCH] chore: Reduce the amount of Slack notifications (#834) --- .github/workflows/ci-cd.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 6f14a8cf..e15e713e 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -113,7 +113,7 @@ jobs: name: ci-${{ matrix.next-version }}${{ matrix.base-path && '-basePath' || ''}} - uses: 47ng/actions-slack-notify@main name: Notify on Slack - if: always() + if: failure() with: status: ${{ job.status }} jobName: next@${{ matrix.next-version }}${{ matrix.base-path && ' basePath' || ''}} @@ -147,7 +147,7 @@ jobs: name: ci-react - uses: 47ng/actions-slack-notify@main name: Notify on Slack - if: always() + if: failure() with: status: ${{ job.status }} jobName: react @@ -187,7 +187,7 @@ jobs: name: ci-react-router-${{ matrix.react-router-version }} - uses: 47ng/actions-slack-notify@main name: Notify on Slack - if: always() + if: failure() with: status: ${{ job.status }} jobName: react-router-${{ matrix.react-router-version }} @@ -221,13 +221,31 @@ jobs: name: ci-remix - uses: 47ng/actions-slack-notify@main name: Notify on Slack - if: always() + if: failure() with: status: ${{ job.status }} jobName: remix env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + ci-notify: + name: Notify on Slack + runs-on: ubuntu-24.04 + needs: + - lint + - ci-core + - e2e-next + - e2e-react + - e2e-react-router + - e2e-remix + steps: + - uses: 47ng/actions-slack-notify@main + with: + status: ${{ job.status }} + jobName: Continuous Integration + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + cd: name: Deployment runs-on: ubuntu-24.04