Skip to content

Commit ef243cf

Browse files
authored
Create remove-old-artifacts.yml
1 parent 2404961 commit ef243cf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Remove old artifacts
2+
3+
on:
4+
# push:
5+
# branches: [ main ]
6+
7+
schedule:
8+
# Runs at 01:00 UTC on the 1, 8, 15, 22 and 29th of every month.
9+
- cron: '0 1 */7 * *'
10+
11+
jobs:
12+
remove-old-artifacts:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
16+
steps:
17+
- name: Remove old artifacts
18+
uses: c-hive/gha-remove-artifacts@v1
19+
with:
20+
age: '1 month'
21+
skip-tags: true
22+
skip-recent: 5

0 commit comments

Comments
 (0)