Ver Fonte

[skip ci] Delete workflow runs

Xwite há 3 anos atrás
pai
commit
5f3ea3e883
3 ficheiros alterados com 15 adições e 1 exclusões
  1. 1 1
      .github/scripts/cronet.sh
  2. 7 0
      .github/workflows/cronet.yml
  3. 7 0
      .github/workflows/test.yml

+ 1 - 1
.github/scripts/cronet.sh

@@ -29,7 +29,7 @@ function checkVersionExit() {
         if [[ $max_offset > $offset ]]; then
         if [[ $max_offset > $offset ]]; then
             offset=$(expr $offset + 1)
             offset=$(expr $offset + 1)
             echo "retry with offset $offset"
             echo "retry with offset $offset"
-            fetchVersion
+            fetchExitVersion
         else
         else
             exit
             exit
         fi
         fi

+ 7 - 0
.github/workflows/cronet.yml

@@ -40,3 +40,10 @@ jobs:
             *cronet.json
             *cronet.json
             *updateLog.md
             *updateLog.md
             gradle.properties
             gradle.properties
+      - name: Delete workflow runs
+        uses: Mattraks/delete-workflow-runs@v2
+        with:
+          token: ${{ github.token }}
+          repository: ${{ github.repository }}
+          retain_days: 2
+          keep_minimum_runs: 3

+ 7 - 0
.github/workflows/test.yml

@@ -103,6 +103,13 @@ jobs:
         with:
         with:
           name: legado.${{ env.product }}.${{ env.type }}
           name: legado.${{ env.product }}.${{ env.type }}
           path: ${{ github.workspace }}/apk/*.apk
           path: ${{ github.workspace }}/apk/*.apk
+      - name: Delete workflow runs
+        uses: Mattraks/delete-workflow-runs@v2
+        with:
+          token: ${{ github.token }}
+          repository: ${{ github.repository }}
+          retain_days: 30
+          keep_minimum_runs: 30
 
 
   lanzou:
   lanzou:
     needs: [ prepare, build ]
     needs: [ prepare, build ]