提交 78ebde12 编写于 作者: H huangxinda 提交者: Megvii Engine Team

ci(mge): send dingding when tests fail

上级 ebb7f5ca
...@@ -62,3 +62,22 @@ jobs: ...@@ -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 }}"
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册