Skip to content

Commit 356ecf4

Browse files
authored
GH actions: delete old workflow runs (#4637) [ci skip]
1 parent 7c3daea commit 356ecf4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/delete-runs.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Delete workflow runs
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
days:
6+
description: 'Number of days'
7+
required: true
8+
default: 120
9+
10+
jobs:
11+
del_runs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Delete workflow runs
15+
uses: Mattraks/delete-workflow-runs@main
16+
with:
17+
token: ${{ github.token }}
18+
repository: ${{ github.repository }}
19+
retain_days: ${{ github.event.inputs.days }}
20+
keep_minimum_runs: 10

0 commit comments

Comments
 (0)