allow notification to slact when e2e failed

Signed-off-by: zackzhangkai <zhangkaiamm@gmail.com>
This commit is contained in:
zackzhangkai
2021-04-23 15:15:37 +08:00
parent a77ed95a5b
commit 3762701fa2
2 changed files with 11 additions and 2 deletions

View File

@@ -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()

View File

@@ -65,4 +65,4 @@ jobs:
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
if: always()
if: failure()