Procházet zdrojové kódy

chore: update github actions

代强 před 2 roky
rodič
revize
145f0b077b
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      .github/workflows/performance.yaml

+ 5 - 1
.github/workflows/performance.yaml

@@ -2,6 +2,10 @@ name: performance
 
 on:
   workflow_dispatch:
+    inputs:
+      test_component_name:
+        description: 'Input Component Name to test performance, input all to test all'
+        required: false
 
 jobs:
   performance:
@@ -10,7 +14,7 @@ jobs:
       - run: |
           wget https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/performance/main
           chmod +x ./main
-          ./main --mode=all
+          ./main --mode=diffComponent --componentName=${{ github.event.inputs.test_component_name }}
         env:
           TOS_PASSWD: ${{ secrets.TOS_PASSWD }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}