ソースを参照

Update benchmark.yml

quyuan01 1 年間 前
コミット
2abce87a31
1 ファイル変更5 行追加1 行削除
  1. 5 1
      .github/workflows/benchmark.yml

+ 5 - 1
.github/workflows/benchmark.yml

@@ -52,4 +52,8 @@ jobs:
     steps:
     - name: notify
       run: |
-        curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"post","content":{"post":{"zh_cn":{"title":"'${{ github.repository }}' GitHubAction Failed","content":[[{"tag":"text","text":""},{"tag":"a","text":"Please click here for details ","href":"https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'"},{"tag":"at","user_id":"'${{ secrets.USER_ID }}'"}]]}}}}'  ${{ secrets.WEBHOOK_URL }}
+        curl  ${{ secrets.WEBHOOK_URL }} -H 'Content-Type: application/json'    -d '{
+        "msgtype": "text",
+        "text": {
+            "content": "'${{ github.repository }}' GitHubAction Failed! \n" + "Please click here for details \n" + "https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'"
+        }                                                                                                                             }'