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 @@ -390,3 +390,25 @@ jobs:
390
390
OS_APPLICATION_CREDENTIAL_ID : ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
391
391
OS_APPLICATION_CREDENTIAL_SECRET : ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
392
392
if : always()
393
+
394
+ - name : Send message to Slack via Workflow Builder
395
+
396
+ with :
397
+ payload : |
398
+ {
399
+ "channel-id": "${{ env.SLACK_CHANNEL_ID }}",
400
+ "inputs": "${{ env.INPUTS }}",
401
+ "message": "${{ env.MESSAGE }}",
402
+ "results-url": "${{ env.RESULTS_URL }}",
403
+ "workflow-url": "${{ env.WORKFLOW_URL }}"
404
+ }
405
+ env :
406
+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
407
+ # #release-train-alerts
408
+ SLACK_CHANNEL_ID : C03B28HRP53
409
+ INPUTS : >-
410
+ branch: ${{ github.ref_name }}
411
+ MESSAGE : " SKC overcloud host image build failed :sob:"
412
+ RESULTS_URL : " N/A"
413
+ WORKFLOW_URL : " ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
414
+ if : failure()
You can’t perform that action at this time.
0 commit comments