.github/workflows/clear-cache.yml
raw| 1 | name: Clear Actions Cache |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | |
| 6 | permissions: |
| 7 | actions: write |
| 8 | |
| 9 | jobs: |
| 10 | clear-cache: |
| 11 | name: Clean Cache |
| 12 | runs-on: ubuntu-latest |
| 13 | env: |
| 14 | GH_TOKEN: ${{ github.token }} |
| 15 | steps: |
| 16 | - name: Clear cache |
| 17 | run: | |
| 18 | gh cache delete --all --repo "$GITHUB_REPOSITORY" |
| 19 | echo "cache cleared" |