Skip to content

Commit 247c32f

Browse files
committed
remove old artifacts
Signed-off-by: Dhruva Gole <[email protected]>
1 parent 199ecbc commit 247c32f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/rm-old.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Remove old artifacts
2+
3+
on:
4+
schedule:
5+
# Every day at 1am
6+
- cron: '0 1 * * *'
7+
8+
jobs:
9+
remove-old-artifacts:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 10
12+
13+
steps:
14+
- name: Remove old artifacts
15+
uses: c-hive/gha-remove-artifacts@v1
16+
with:
17+
age: '2 days' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
18+
# Optional inputs
19+
# skip-tags: true
20+
# skip-recent: 5

0 commit comments

Comments
 (0)