Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create notification_trial #5

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/notification_trial.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Failure Notification

on:
push:
pull_request:
schedule:
- cron: "0-58/2 * * * *"

jobs:
failing-job:
runs-on: ubuntu-latest
steps:
- name: Announce event
run: |
echo ${{ github.event_name }}
echo ${{ github.event_name == 'pull_request' }}
- name: failing step
run: exit 1
on-failure:
runs-on: ubuntu-latest
if: ${{ always() && github.event_name == 'pull_request' }}
needs:
- failing-job
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 }}
- name: Announce event again
run: echo ${{ github.event_name == 'pull_request' && needs.failing-job.result == 'failure' }}
Loading