Skip to content

Commit a137989

Browse files
authored
fix: bust cache by tweaking the poetry lock (#662)
* fix: bust cache by tweaking the poetry lock * fix: allow caches to be cleared
1 parent ba30360 commit a137989

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Clear Repository Caches
2+
3+
on:
4+
schedule:
5+
# Run every 5 days at 2 AM UTC
6+
- cron: "0 2 */5 * *"
7+
workflow_dispatch: # Allow manual trigger
8+
9+
permissions:
10+
actions: write
11+
12+
jobs:
13+
clear-caches:
14+
name: Clear Repository Caches
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Clear all repository caches
21+
env:
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: |
24+
echo "🧹 Starting cache cleanup process..."
25+
if gh cache delete --all --succeed-on-no-caches; then
26+
echo "🎉 Cache cleanup completed!"
27+
else
28+
echo "❌ Failed to clear caches"
29+
exit 1
30+
fi

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)