Skip to content

Commit

Permalink
Add slack notification for scheduled build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
geofflamrock authored Aug 12, 2024
1 parent fea7e7b commit bb0f361
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,19 @@ jobs:

- name: Echo package number from self-test
run: echo "Release Created [${{ steps.self_test.outputs.release_number }}]"

notify:
runs-on: ubuntu-latest
name: Slack - Notify on nightly build failure
needs: [test]
if: ${{ github.event_name == 'schedule' && failure() }}

steps:
- name: Notify
uses: zuplo/github-action-slack-notify-build@v2
with:
channel_id: ${{ secrets.SLACK_NOTIFICATIONS_CHANNEL_ID }}
status: FAILED
color: danger
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_TOKEN }}

0 comments on commit bb0f361

Please sign in to comment.