Clear all caches #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clear all caches | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' # Every week | |
permissions: | |
actions: write | |
jobs: | |
clear: | |
name: Clear all cache | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Clear cache | |
run: gh cache delete --all | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |