Skip to content

Commit 4b4ac32

Browse files
committed
fix: add old jobs cleanup
1 parent 38a5a2b commit 4b4ac32

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/cleanup.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Clean Up
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# * is a special character in YAML so you have to quote this string
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
cleanup:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: yanovation/delete-old-actions@v1
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
days-ago: 30
18+
keep-latest: 10

0 commit comments

Comments
 (0)