We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1c1390 commit 4488906Copy full SHA for 4488906
.github/workflows/delete_stale_workflow.yaml
@@ -0,0 +1,24 @@
1
+name: Delete old workflow runs
2
+on:
3
+ workflow_dispatch:
4
+ inputs:
5
+ days:
6
+ description: "Number of days."
7
+ required: true
8
+ default: 7
9
+ minimum_runs:
10
+ description: "The minimum runs to keep for each workflow."
11
12
+ default: 5
13
+
14
+jobs:
15
+ del_runs:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Delete workflow runs
19
+ uses: Mattraks/delete-workflow-runs@v2
20
+ with:
21
+ token: ${{ github.token }}
22
+ repository: ${{ github.repository }}
23
+ retain_days: ${{ github.event.inputs.days }}
24
+ keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}
0 commit comments