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 39
39
build_type : ${{ matrix.build_type }}
40
40
build_script : ${{ matrix.build_script }}
41
41
secrets : inherit
42
+
43
+ slack-notification :
44
+ if : ${{ failure() }}
45
+ needs : [ main ]
46
+ name : Slack Notification
47
+ runs-on : ubuntu-24.04
48
+ steps :
49
+ - name : Greet the reader
50
+
51
+ with :
52
+ webhook : ${{ secrets.SLACK_WEBHOOK_URL }}
53
+ webhook-type : incoming-webhook
54
+ payload : |
55
+ text: "${{ github.workflow }} failed!"
56
+ blocks:
57
+ - type: "section"
58
+ text:
59
+ type: "mrkdwn"
60
+ text: "Workflow ${{ github.workflow }} failed on branch ${{ github.head_ref }}!\n
61
+ Commit: <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\n
62
+ \n
63
+ <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
You can’t perform that action at this time.
0 commit comments