File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ permissions:
9
9
contents : read
10
10
11
11
jobs :
12
+
12
13
build-and-test :
13
14
runs-on : ubuntu-latest
14
15
67
68
image-ref : " ghcr.io/kafbat/kafka-ui:${{ steps.build.outputs.version }}"
68
69
format : " table"
69
70
exit-code : " 1"
71
+
72
+ notify :
73
+ needs : build-and-test
74
+ if : ${{ always() && needs.build-and-test.result == 'failure' }}
75
+ uses : ./.github/workflows/infra_discord_hook.yml
76
+ with :
77
+ message : " Attention! CVE checks run failed! Please fix them CVEs :("
78
+ secrets :
79
+ DISCORD_WEBHOOK_URL : ${{ secrets.DISCORD_WEBHOOK_URL_CVE }}
Original file line number Diff line number Diff line change
1
+ name : ' Discord hook'
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ message :
7
+ description : ' Message text'
8
+ required : true
9
+ type : string
10
+ secrets :
11
+ DISCORD_WEBHOOK_URL :
12
+ required : true
13
+
14
+ permissions :
15
+ contents : read
16
+
17
+ jobs :
18
+
19
+ hook :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Notify Discord on Failure
23
+ uses : Ilshidur/action-discord@0.3.2
24
+ with :
25
+ args : ${{ inputs.message }}
26
+ env :
27
+ DISCORD_WEBHOOK : ${{ secrets.DISCORD_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments