Browse Source

[skip ci] Delete workflow runs

Xwite 3 years ago
parent
commit
64a83fa448
1 changed files with 19 additions and 0 deletions
  1. 19 0
      .github/workflows/workflow.yml

+ 19 - 0
.github/workflows/workflow.yml

@@ -0,0 +1,19 @@
+
+name: delete old workflows
+
+on: 
+  schedule:
+    - cron: '0 16 0/7 * *'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Delete workflow runs
+        uses: Mattraks/delete-workflow-runs@v2
+        continue-on-error: true
+        with:
+          token: ${{ github.token }}
+          repository: ${{ github.repository }}
+          retain_days: 30
+          keep_minimum_runs: 30