Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Reduce the amount of Slack notifications #834

Merged
merged 2 commits into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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