Skip to content

Create notification_trial #26

Create notification_trial

Create notification_trial #26

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

Check failure on line 20 in .github/workflows/notification_trial.yml

View workflow run for this annotation

GitHub Actions / Failure Notification

Invalid workflow file

The workflow is not valid. .github/workflows/notification_trial.yml (Line: 20, Col: 7): Unexpected value 'fail_ci_if_error'
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' }}