File tree 1 file changed +22
-0
lines changed 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 13
13
DOCKER_BUILD_CONFIG_BRANCH : " master"
14
14
DOCKER_BUILD_CONFIG_PATH : " .github/docker-build-config.yml"
15
15
DOCKER_EXAMPLES_DIRECTORY : " label_studio_ml/examples"
16
+ SLACK_NOTIFICATION_CHANNEL_ID : " CKL2D6D2P"
16
17
17
18
jobs :
18
19
build-image :
@@ -151,3 +152,24 @@ jobs:
151
152
const docker_build_config = yaml.load(docker_build_config_content);
152
153
153
154
core.setOutput("matrix-include", docker_build_config);
155
+
156
+ notification :
157
+ name : " Send Slack Notification"
158
+ if : failure()
159
+ runs-on : ubuntu-latest
160
+ needs :
161
+ - build-image
162
+ steps :
163
+ - name : Send Slack Notification
164
+ if : always()
165
+
166
+ env :
167
+ WORKFLOW : " <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|workflow>"
168
+ with :
169
+ method : chat.postMessage
170
+ token : ${{ secrets.SLACK_LSE_BOT_TOKEN }}
171
+ payload : |
172
+ channel: "${{ env.SLACK_NOTIFICATION_CHANNEL_ID }}"
173
+ text: >+
174
+ :x: Build workflow failed
175
+ [ ${{ env.WORKFLOW }} ]
You can’t perform that action at this time.
0 commit comments