Clear caches #23
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
# Clearing caches regularly takes care of caches growing to problematic size over time | |
name: Clear caches | |
on: | |
schedule: | |
- cron: '0 4 * * MON' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
clear-caches: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Clear all caches | |
run: gh cache delete --all | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |