Skip to content

Commit ac636dc

Browse files
author
Cat
committed
ci: add workflow runs clean up
1 parent 102d293 commit ac636dc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Delete old workflow runs
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
del_runs:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
actions: write
12+
contents: read
13+
steps:
14+
- name: Delete workflow runs
15+
uses: Mattraks/delete-workflow-runs@v2
16+
with:
17+
token: ${{ github.token }}
18+
repository: ${{ github.repository }}
19+
retain_days: 7
20+
keep_minimum_runs: 1

0 commit comments

Comments
 (0)