File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 17
17
jobs :
18
18
build :
19
19
name : Build site image
20
+ id : build-site
20
21
runs-on : ubuntu-latest
21
22
strategy :
22
23
matrix :
78
79
79
80
deploy :
80
81
name : Deploy site
82
+ id : deploy-site
81
83
needs : build
82
84
runs-on : ubuntu-latest
83
85
env :
@@ -111,3 +113,22 @@ jobs:
111
113
if : ${{ contains(github.ref, 'refs/tags') }}
112
114
run : |
113
115
./invalidate.sh
116
+
117
+ slack-notification :
118
+ name : " Slack notification"
119
+ needs : [ build-site, deploy-site ]
120
+
121
+ if : failure()
122
+ runs-on : ubuntu-latest
123
+ steps :
124
+ - name : Report Status
125
+ uses : ravsamhq/notify-slack-action@master
126
+ with :
127
+ notification_title : ' Operatorhub.io deploy failed: ${{ needs.pr-check.outputs.opp_pr_title }}'
128
+ footer : ' monitoring'
129
+ # status: ${{ needs.pr-check.result }}
130
+ status : ' failure'
131
+ notify_when : ' failure'
132
+ env :
133
+ SLACK_WEBHOOK_URL : ${{ secrets.ACTION_MONITORING_SLACK }}
134
+ continue-on-error : true
You can’t perform that action at this time.
0 commit comments