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:
parent
6cdf378532
commit
12650a2a7d
1 changed files with 4 additions and 1 deletions
5
.github/workflows/tests-nightly.yml
vendored
5
.github/workflows/tests-nightly.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue