Skip to content

Commit 059cb06

Browse files
[CI] Route nightly checks fail reports to a dedicated Slack channel (#763)
1 parent 8aec9f1 commit 059cb06

File tree

3 files changed

+19
-26
lines changed

3 files changed

+19
-26
lines changed

.github/workflows/cron-checks.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,6 @@ jobs:
9090
- name: Allure TestOps Launch Removal
9191
if: cancelled()
9292
run: bundle exec fastlane allure_launch_removal launch_id:$LAUNCH_ID
93-
- uses: 8398a7/action-slack@v3
94-
with:
95-
status: ${{ job.status }}
96-
text: "You shall not pass!"
97-
job_name: "${{ github.workflow }}: ${{ github.job }}"
98-
fields: message,commit,author,action,workflow,job,took
99-
env:
100-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
101-
MATRIX_CONTEXT: ${{ toJson(matrix) }}
102-
if: failure() && github.event_name == 'schedule'
10393
- name: Parse xcresult
10494
if: failure()
10595
run: |
@@ -137,19 +127,9 @@ jobs:
137127
run: bundle exec fastlane build_demo
138128
env:
139129
XCODE_VERSION: ${{ matrix.xcode }}
140-
- uses: 8398a7/action-slack@v3
141-
with:
142-
status: ${{ job.status }}
143-
text: "You shall not pass!"
144-
job_name: "${{ github.workflow }}: ${{ github.job }}"
145-
fields: message,commit,author,action,workflow,job,took
146-
env:
147-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
148-
MATRIX_CONTEXT: ${{ toJson(matrix) }}
149-
if: failure() && github.event_name == 'schedule'
150130

151-
build-xcode15:
152-
name: Build SDKs (Xcode 15.0)
131+
build-old-xcode:
132+
name: Build SDKs (Xcode 15)
153133
runs-on: macos-15
154134
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
155135
env:
@@ -185,3 +165,18 @@ jobs:
185165
- run: bundle exec fastlane rubocop
186166
- run: ./Scripts/run-linter.sh
187167
- run: bundle exec fastlane pod_lint
168+
169+
slack:
170+
name: Slack Report
171+
runs-on: ubuntu-latest
172+
needs: [test-e2e-debug, build-test-app-and-frameworks, build-apps, build-old-xcode, automated-code-review]
173+
if: failure() && github.event_name == 'schedule'
174+
steps:
175+
- uses: 8398a7/action-slack@v3
176+
with:
177+
status: cancelled
178+
text: "You shall not pass!"
179+
job_name: "${{ github.workflow }}: ${{ github.job }}"
180+
fields: repo,commit,author,workflow
181+
env:
182+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_NIGHTLY_CHECKS }}

.github/workflows/testflight.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ jobs:
3737
with:
3838
status: ${{ job.status }}
3939
text: "You shall not pass!"
40-
fields: message,commit,author,action,workflow,job,took
40+
fields: repo,commit,author,workflow
4141
env:
4242
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
43-
MATRIX_CONTEXT: ${{ toJson(matrix) }}
4443
if: failure()

.github/workflows/update-copyright.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
status: ${{ job.status }}
2727
text: "You shall not pass!"
2828
job_name: "${{ github.workflow }}: ${{ github.job }}"
29-
fields: message,commit,author,action,workflow,job,took
29+
fields: repo,commit,author,workflow
3030
env:
3131
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
32-
MATRIX_CONTEXT: ${{ toJson(matrix) }}
3332
if: failure()

0 commit comments

Comments
 (0)