Browse Source

test: update workflow notify to feishu

Sidney233 4 months ago
parent
commit
983b3d0948
2 changed files with 4 additions and 19 deletions
  1. 2 2
      .github/workflows/cli.yml
  2. 2 17
      .github/workflows/huigui.yml

+ 2 - 2
.github/workflows/cli.yml

@@ -43,8 +43,8 @@ jobs:
   notify_to_feishu:
   notify_to_feishu:
     if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
     if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
     needs: cli-test
     needs: cli-test
-    runs-on: pdf
+    runs-on: ubuntu-latest
     steps:
     steps:
     - name: notify
     - name: notify
       run: |
       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":"'$USER_ID'"}]]}}}}'  $WEBHOOK_URL
+        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}'"}]]}}}}'  ${{ secrets.FEISHU_WEBHOOK_URL }}

+ 2 - 17
.github/workflows/huigui.yml

@@ -12,7 +12,7 @@ on:
       - "**.md"
       - "**.md"
 jobs:
 jobs:
   cli-test:
   cli-test:
-#    if: github.repository == 'opendatalab/MinerU'
+    if: github.repository == 'opendatalab/MinerU'
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     timeout-minutes: 240
     timeout-minutes: 240
     strategy:
     strategy:
@@ -39,25 +39,10 @@ jobs:
         cd $GITHUB_WORKSPACE && python tests/get_coverage.py
         cd $GITHUB_WORKSPACE && python tests/get_coverage.py
 
 
   notify_to_feishu:
   notify_to_feishu:
-#    if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
+    if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
     needs: cli-test
     needs: cli-test
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
-    - name: get_actor
-      run: |
-          metion_list="dt-yy"
-          echo $GITHUB_ACTOR
-          if [[ $GITHUB_ACTOR == "drunkpig" ]]; then
-            metion_list="xuchao"
-          elif [[ $GITHUB_ACTOR == "myhloli" ]]; then
-            metion_list="zhaoxiaomeng"
-          elif [[ $GITHUB_ACTOR == "icecraft" ]]; then
-            metion_list="xurui1"
-          fi
-          echo $metion_list
-          echo "METIONS=$metion_list" >> "$GITHUB_ENV"
-          echo ${{ env.METIONS }}
-
     - name: notify
     - name: notify
       run: |
       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}'"}]]}}}}'  ${{ secrets.FEISHU_WEBHOOK_URL }}
         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}'"}]]}}}}'  ${{ secrets.FEISHU_WEBHOOK_URL }}