Skip to content

Commit

Permalink
Add a job to notify on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Aug 29, 2024
1 parent 22c376b commit b4fd874
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lsst-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,18 @@ jobs:
with:
files: ./coverage.xml
fail_ci_if_error: false

notify-on-failure:
runs-on: ubuntu-latest
if: ${{ always() && (github.event_name == 'push' || github.event_name == 'schedule') && needs.lsst-tests.result == 'failure' }}
needs:
- lsst-tests
steps:
- uses: actions/checkout@v2
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
MSG_MINIMAL: actions_url
SLACK_FOOTER: ""
SLACK_TITLE: LSST metadetect tests failing on lsst-dev
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit b4fd874

Please sign in to comment.