-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 950 Bytes
/
notifyCD.yaml
File metadata and controls
36 lines (33 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Send Slack Notification CD
on:
workflow_call:
secrets:
SLACK_WEBHOOK_URL:
required: true
jobs:
success_notifier:
if: success()
runs-on: ubuntu-latest
steps:
- name: Send success notification on Slack
uses: slackapi/slack-github-action@v1.24.0
with:
payload: |
{
"text": "The Continuous Deployment for Comment Service workflow has completed successfully."
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
failure_notifier:
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send failure notification on Slack
uses: slackapi/slack-github-action@v1.24.0
with:
payload: |
{
"text": "The Continuous Deployment for Comment Service workflow has failed."
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}