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 1717jobs :
1818 build :
1919 name : Build site image
20+ id : build-site
2021 runs-on : ubuntu-latest
2122 strategy :
2223 matrix :
7879
7980 deploy :
8081 name : Deploy site
82+ id : deploy-site
8183 needs : build
8284 runs-on : ubuntu-latest
8385 env :
@@ -111,3 +113,22 @@ jobs:
111113 if : ${{ contains(github.ref, 'refs/tags') }}
112114 run : |
113115 ./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