19 lines
462 B
YAML
19 lines
462 B
YAML
name: Clear Cache
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC
|
|
|
|
jobs:
|
|
clear-cache:
|
|
name: Clear Cache
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clear all caches
|
|
run: gh cache delete --all --succeed-on-no-caches --repo "$OWNER/$REPO"
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
OWNER: ${{ github.repository_owner }}
|
|
REPO: ${{ github.event.repository.name }}
|