Skip to content

Commit 6aaabbf

Browse files
committed
Added slack nitification
Signed-off-by: Martin Vala <mavala@redhat.com>
1 parent bc70696 commit 6aaabbf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/openshift.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
jobs:
1818
build:
1919
name: Build site image
20+
id: build-site
2021
runs-on: ubuntu-latest
2122
strategy:
2223
matrix:
@@ -78,6 +79,7 @@ jobs:
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

0 commit comments

Comments
 (0)