Skip to content

Commit 3d345cd

Browse files
authoredDec 31, 2024
chore: Reduce the amount of Slack notifications (#834)
1 parent 331b587 commit 3d345cd

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed
 

Diff for: ‎.github/workflows/ci-cd.yml

+22-4
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
name: ci-${{ matrix.next-version }}${{ matrix.base-path && '-basePath' || ''}}
114114
- uses: 47ng/actions-slack-notify@main
115115
name: Notify on Slack
116-
if: always()
116+
if: failure()
117117
with:
118118
status: ${{ job.status }}
119119
jobName: next@${{ matrix.next-version }}${{ matrix.base-path && ' basePath' || ''}}
@@ -147,7 +147,7 @@ jobs:
147147
name: ci-react
148148
- uses: 47ng/actions-slack-notify@main
149149
name: Notify on Slack
150-
if: always()
150+
if: failure()
151151
with:
152152
status: ${{ job.status }}
153153
jobName: react
@@ -187,7 +187,7 @@ jobs:
187187
name: ci-react-router-${{ matrix.react-router-version }}
188188
- uses: 47ng/actions-slack-notify@main
189189
name: Notify on Slack
190-
if: always()
190+
if: failure()
191191
with:
192192
status: ${{ job.status }}
193193
jobName: react-router-${{ matrix.react-router-version }}
@@ -221,13 +221,31 @@ jobs:
221221
name: ci-remix
222222
- uses: 47ng/actions-slack-notify@main
223223
name: Notify on Slack
224-
if: always()
224+
if: failure()
225225
with:
226226
status: ${{ job.status }}
227227
jobName: remix
228228
env:
229229
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
230230

231+
ci-notify:
232+
name: Notify on Slack
233+
runs-on: ubuntu-24.04
234+
needs:
235+
- lint
236+
- ci-core
237+
- e2e-next
238+
- e2e-react
239+
- e2e-react-router
240+
- e2e-remix
241+
steps:
242+
- uses: 47ng/actions-slack-notify@main
243+
with:
244+
status: ${{ job.status }}
245+
jobName: Continuous Integration
246+
env:
247+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
248+
231249
cd:
232250
name: Deployment
233251
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)