Skip to content

Commit a2075be

Browse files
committed
ci: add scheduled action to clear github caches
1 parent b4d075b commit a2075be

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/clear-caches.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Clearing caches regularly takes care of caches growing to problematic size over time
2+
3+
name: Clear caches
4+
5+
on:
6+
schedule:
7+
- cron: '0 4 * * MON'
8+
workflow_dispatch:
9+
10+
jobs:
11+
clear-caches:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Clear all caches
17+
run: gh cache delete --all
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)