Skip to content

Commit 4488906

Browse files
committed
Action to delete stale builds
1 parent c1c1390 commit 4488906

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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+
required: true
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

Comments
 (0)