Skip to content

Commit 4326cfc

Browse files
authored
Invalidate Github Actions cache every day (webrpc#180)
Github cache eviction policy: - GitHub will remove any cache entries that have not been accessed in over 7 days.
1 parent e7fd8ea commit 4326cfc

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/cache.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Clean cache
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *" # every day (min hour dayOfMonth month dayOfWeek)
5+
6+
jobs:
7+
cleanup:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Cleanup
11+
run: |
12+
gh extension install actions/gh-actions-cache
13+
gh actions-cache list
14+
gh actions-cache delete webrpc-cache --confirm || true
15+
env:
16+
GH_TOKEN: $

0 commit comments

Comments
 (0)