Create notification_trial #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
continue-on-error: true | ||
fail_ci_if_error: true | ||
on-failure: | ||
runs-on: ubuntu-latest | ||
if: ${{ always() && needs.failing-job.result == 'failure' }} | ||
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' }} |