Skip to content

Commit bfaaf94

Browse files
committed
Updates on docs
1 parent 519f48d commit bfaaf94

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
required: true
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

Comments
 (0)