Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Add Slack Notifications (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
tunderwood authored Nov 12, 2020
1 parent bbd95e6 commit c8b5a9b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: Build
on: [push]
on:
push:
branches:
- '*'
pull_request:
branches:
- master
schedule:
- cron: "0 22 * * 1"
jobs:
build-referee:
runs-on: ubuntu-latest
Expand All @@ -8,4 +16,14 @@ jobs:
- uses: actions/setup-node@v1
- run: sudo apt-get -qq update
- run: sudo apt-get install -y oathtool
- run: yarn prepare-artifacts
- run: yarn prepare-artifacts
- name: Slack Notification on Master
if: ${{ failure() && github.ref == 'refs/heads/master'}}
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: referee-alerts
SLACK_MESSAGE: 'Cerberus main build has failed :build-failed:'
SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
SLACK_TITLE: Referee Build Failure Notification
SLACK_USERNAME: GitHub Actions

0 comments on commit c8b5a9b

Please sign in to comment.