Clear all Github Actions caches #28
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 Github Actions caches | |
on: | |
schedule: | |
- cron: "0 23 28 * *" | |
repository_dispatch: | |
types: [backend_automation] | |
workflow_dispatch: | |
jobs: | |
my-job: | |
name: Delete all caches | |
runs-on: ubuntu-latest | |
steps: | |
- name: list caches | |
uses: edoapra/wipe-cache@main | |
with: | |
dry-run: 'true' | |
- name: clear caches | |
if: ${{ github.actor == github.repository_owner }} | |
uses: edoapra/wipe-cache@main | |
with: | |
dry-run: 'false' |