Skip to content

Commit 5d64477

Browse files
authored
Create remove-old-artifacts.yml
1 parent 651620a commit 5d64477

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Remove old artifacts
2+
3+
on:
4+
# push:
5+
# branches: [ master ]
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+
workflow_dispatch:
12+
13+
jobs:
14+
remove-old-artifacts:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
18+
steps:
19+
- name: Remove old artifacts
20+
uses: c-hive/gha-remove-artifacts@v1
21+
with:
22+
age: '7 days'
23+
skip-tags: true
24+
skip-recent: 5

0 commit comments

Comments
 (0)