File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 27
27
DOCKER_BUILD_CONFIG_BRANCH : " master"
28
28
DOCKER_BUILD_CONFIG_PATH : " .github/docker-build-config.yml"
29
29
DOCKER_EXAMPLES_DIRECTORY : " label_studio_ml/examples"
30
+ SLACK_NOTIFICATION_CHANNEL_ID : " CKL2D6D2P"
30
31
31
32
jobs :
32
33
run_pytest :
@@ -241,3 +242,24 @@ jobs:
241
242
env :
242
243
PR_URL : ${{ github.event.pull_request.html_url }}
243
244
GITHUB_TOKEN : ${{ secrets.GIT_PAT }}
245
+
246
+ notification :
247
+ name : " Send Slack Notification"
248
+ if : failure() && github.event_name == 'schedule'
249
+ runs-on : ubuntu-latest
250
+ needs :
251
+ - run_pytest
252
+ steps :
253
+ - name : Send Slack Notification
254
+ if : always()
255
+
256
+ env :
257
+ WORKFLOW : " <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|workflow>"
258
+ with :
259
+ method : chat.postMessage
260
+ token : ${{ secrets.SLACK_LSE_BOT_TOKEN }}
261
+ payload : |
262
+ channel: "${{ env.SLACK_NOTIFICATION_CHANNEL_ID }}"
263
+ text: >+
264
+ :x: Scheduled test workflow failed
265
+ [ ${{ env.WORKFLOW }} ]
You can’t perform that action at this time.
0 commit comments