Browse Source

ci(mge): send dingding when tests fail

tags/v1.6.0-rc1
huangxinda Megvii Engine Team 3 years ago
parent
commit
78ebde12f9
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      .github/workflows/ci.yml

+ 19
- 0
.github/workflows/ci.yml View File

@@ -62,3 +62,22 @@ jobs:
git checkout -b master origin/master git checkout -b master origin/master
git rebase try-import git rebase try-import
git push git push
send-dingding:
runs-on: ubuntu-latest
needs: [cpu-test, gpu-test]
if: ${{ always() && github.ref == 'refs/heads/try-import' && (needs.cpu-test.result == 'failure' || needs.gpu-test.result == 'failure' ) }}
steps:
- name: run
uses: zcong1993/actions-ding@master
with:
dingToken: ${{ secrets.DINGDING_TOKEN }}
body: |
{
"msgtype": "link",
"link": {
"text": "Workflow ${{ github.run_id }} Failed",
"title": "Action Alert",
"picUrl": "",
"messageUrl": "https://github.com/MegEngine/MegEngine/actions/runs/${{ github.run_id }}"
}
}

Loading…
Cancel
Save