allow notification to slact when e2e failed
Signed-off-by: zackzhangkai <zhangkaiamm@gmail.com>
This commit is contained in:
9
.github/workflows/e2e-test.yml
vendored
9
.github/workflows/e2e-test.yml
vendored
@@ -35,3 +35,12 @@ jobs:
|
||||
|
||||
- name: Run e2e testing
|
||||
run: go test ./test/e2e
|
||||
|
||||
- name: slack
|
||||
uses: 8398a7/action-slack@v3
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
|
||||
if: failure()
|
||||
2
.github/workflows/nightly-builds.yml
vendored
2
.github/workflows/nightly-builds.yml
vendored
@@ -65,4 +65,4 @@ jobs:
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
|
||||
if: always()
|
||||
if: failure()
|
||||
|
||||
Reference in New Issue
Block a user