diff --git a/.github/workflows/update-all-review-data.yml b/.github/workflows/update-all-review-data.yml index e26244c5..cff8e625 100644 --- a/.github/workflows/update-all-review-data.yml +++ b/.github/workflows/update-all-review-data.yml @@ -45,3 +45,14 @@ jobs: # Custom token needed to trigger PR checks, as GITHUB_TOKEN won't # https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }} + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2 + if: failure() + env: + SLACK_CHANNEL: pyos-infrastructure + SLACK_COLOR: '#db540b' + SLACK_LINK_NAMES: true + SLACKIFY_MARKDOWN: true + SLACK_TITLE: "ALL Contribs & Reviewers Update Workflow Failed" + SLACK_MESSAGE: "The **ALL Contribs & Reviewers Update** workflow failed for pyopensci.org. Please check the logs." + SLACK_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} diff --git a/.github/workflows/update-contribs-reviews.yml b/.github/workflows/update-contribs-reviews.yml index e9b85039..64ca447b 100644 --- a/.github/workflows/update-contribs-reviews.yml +++ b/.github/workflows/update-contribs-reviews.yml @@ -49,3 +49,14 @@ jobs: # Custom token needed to trigger PR checks, as GITHUB_TOKEN won't # https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }} + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2 + if: failure() + env: + SLACK_CHANNEL: pyos-infrastructure + SLACK_COLOR: '#db540b' + SLACK_LINK_NAMES: true + SLACKIFY_MARKDOWN: true + SLACK_TITLE: "Update Contribs & Reviewers Workflow Failed" + SLACK_MESSAGE: "The **Update Contribs & Reviewers** workflow failed for pyopensci.org. Please check the logs." + SLACK_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}