We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519f48d commit bfaaf94Copy full SHA for bfaaf94
.github/workflows/delete-workflow-runs.yml
@@ -0,0 +1,30 @@
1
+name: delete-workflow-runs
2
+
3
+on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ days:
7
+ description: 'no. of days'
8
+ required: true
9
+ default: 30
10
+ minimum_runs:
11
+ description: 'minimum runs to keep (per workflow)'
12
13
+ default: 6
14
15
+# push:
16
+# branches: [ develop ]
17
18
+jobs:
19
+ del_runs:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - name: Delete workflow runs
23
+ uses: Mattraks/delete-workflow-runs@v2
24
+ with:
25
+ token: ${{ github.token }}
26
+ repository: ${{ github.repository }}
27
+ retain_days: ${{ github.event.inputs.days }}
28
+ # retain_days: 30
29
+ keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}
30
+ # keep_minimum_runs: 6
0 commit comments