Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 6e7467c

Browse files
committed
feat: added Slack notifications in auto-merge pipeline
1 parent cd9e2d5 commit 6e7467c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/auto-merge.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,25 @@ jobs:
1818
with:
1919
target: minor
2020
github-token: ${{ secrets.DEPENDABOT_TOKEN }}
21+
22+
- name: Send Slack notification
23+
uses: 8398a7/[email protected]
24+
if: failure()
25+
with:
26+
status: ${{ job.status }}
27+
author_name: ${{ github.actor }}
28+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
29+
env:
30+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Send Slack notification
34+
uses: 8398a7/[email protected]
35+
if: success()
36+
with:
37+
status: ${{ job.status }}
38+
author_name: ${{ github.actor }}
39+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
40+
env:
41+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)