Skip to content

Commit

Permalink
Add reusable workflow for scheduled jobs to notify on slack. (#3873)
Browse files Browse the repository at this point in the history
* Add reusable workflow for scheduled jobs to notify on slack.

* Move job into e2e-upgrade.

* rm notification on upgrade workflow for time being.

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
  • Loading branch information
DimitrisJim and crodriguezvega committed Feb 20, 2024
1 parent abcb67f commit d266170
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/slack-notify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This re-usable workflow file will trigger a Slack notification on the channel configure via the Webhook URL.
# It currently comments a number of fields, but you can add or remove them as you see fit.
#
# To configure a Slack Webhook URL, follow the instructions here: https://api.slack.com/messaging/webhooks
on:
workflow_call:

jobs:
slack-notify:
runs-on: ubuntu-latest
steps:
- uses: 8398a7/action-slack@v3
with:
status: 'failure'
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit d266170

Please sign in to comment.