From 78ebde12f94ab0ac56dde9e1d26d26691f9e5dba Mon Sep 17 00:00:00 2001 From: huangxinda Date: Mon, 9 Aug 2021 22:48:47 +0800 Subject: [PATCH] ci(mge): send dingding when tests fail --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7eba722ee..08822a7a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,3 +62,22 @@ jobs: git checkout -b master origin/master git rebase try-import 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 }}" + } + } -- GitLab