Clear Cache #8170
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 Cache | |
permissions: write-all | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 * * * *' # Runs once an hour | |
jobs: | |
clear: | |
name: Clear cache | |
runs-on: ubuntu-latest | |
steps: | |
- uses: MyAlbum/purge-cache@v2 | |
with: | |
accessed: true # Purge caches by their last accessed time (default) | |
created: false # Purge caches by their created time (default) | |
token: ${{ secrets.GH_TOKEN }} | |
debug: true | |
max-age: 3600 # Cache max 1 hour since last use (this is the default) |