Skip to content

Commit

Permalink
chore: Reduce the amount of Slack notifications (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 authored Dec 31, 2024
1 parent 331b587 commit 3d345cd
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' || ''}}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3d345cd

Please sign in to comment.