Add slack notification if workflow with cypress test fail (#3131)

* add notification if release job fails

* move slack notification to separate job
This commit is contained in:
Karolina Rakoczy 2023-02-10 10:04:12 +01:00 committed by GitHub
parent 6cdf378532
commit 12650a2a7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,8 +289,11 @@ jobs:
--dashboard_url $dashboard_url \ --dashboard_url $dashboard_url \
$auto_release $auto_release
send-slack-notification:
if: ${{ always() && job.status != 'success' && github.event_name == 'repository_dispatch'}}
runs-on: ubuntu-latest
steps:
- name: Notify Slack - name: Notify Slack
if: ${{ failure() && github.event_name == 'repository_dispatch'}}
env: env:
JOB_DEPLOYMENT_KIND: staging JOB_DEPLOYMENT_KIND: staging
JOB_STATUS: ${{ job.status }} JOB_STATUS: ${{ job.status }}