Skip to content

Commit 958db38

Browse files
committed
Create remove-old-artifacts.yml
1 parent 6943590 commit 958db38

File tree

1 file changed

+21
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)