diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7eba722eeb1e4164fa2dbdb4ab0ce8d8c5e2c61d..08822a7a8943f1b6b203312baaae2a4858c311aa 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 }}" + } + }