Skip to content

Commit 35de0c5

Browse files
banesullivanlwasser
authored andcommitted
Add Slack notification to automated jobs
1 parent cc5e294 commit 35de0c5

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/update-all-review-data.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@ jobs:
4545
# Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
4646
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
4747
GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}
48+
- name: Slack Notification
49+
uses: rtCamp/action-slack-notify@v2
50+
if: failure()
51+
env:
52+
SLACK_CHANNEL: pyos-infrastructure
53+
SLACK_COLOR: '#db540b'
54+
SLACK_MESSAGE: "The **ALL Contribs & Reviewers Update** workflow failed for pyopensci.org. Please check the logs."
55+
SLACK_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

.github/workflows/update-contribs-reviews.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,11 @@ jobs:
4949
# Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
5050
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
5151
GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}
52+
- name: Slack Notification
53+
uses: rtCamp/action-slack-notify@v2
54+
if: failure()
55+
env:
56+
SLACK_CHANNEL: pyos-infrastructure
57+
SLACK_COLOR: '#db540b'
58+
SLACK_MESSAGE: "The Update Contribs & Reviewers workflow failed for pyopensci.org. Please check the logs."
59+
SLACK_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

0 commit comments

Comments
 (0)