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

Merge pull request #35 from per1234/slack

Post notification to Slack in the event of an unexpected workflow failure
This commit is contained in:
per1234
2021-05-14 09:14:45 -07:00
committed by GitHub

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