1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-02 23:02:27 +03:00

Post notification to Slack in the event of an unexpected workflow failure

This commit is contained in:
per1234
2021-05-14 08:03:58 -07:00
parent 226abb47de
commit ceda00d151

View File

@ -513,3 +513,14 @@ jobs:
This error is unrelated to the content of your pull request.
A maintainer has been notified and will investigate as soon as possible.
- name: Slack notification of unexpected failure
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.TEAM_TOOLING_CHANNEL_SLACK_WEBHOOK }}
SLACK_MESSAGE: |
:warning::warning::warning::warning:
WARNING: ${{ github.repository }} ${{ github.workflow }} workflow run had an unexpected failure!!!
:warning::warning::warning::warning:
SLACK_COLOR: danger
MSG_MINIMAL: true