Hestia cache GC #75
This file contains hidden or 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: Hestia cache GC | |
| # PR-scoped caches die with their branch; the default-branch scope grows | |
| # forever without this. | |
| on: | |
| schedule: | |
| - cron: "23 3 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| dry-run: | |
| description: Plan only; delete nothing. | |
| type: boolean | |
| default: false | |
| # Two GCs racing corrupts the repack; queue, don't overlap. | |
| concurrency: | |
| group: hestia-gc | |
| cancel-in-progress: false | |
| jobs: | |
| gc: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write # REST cache deletes | |
| contents: read | |
| steps: | |
| - uses: Mic92/hestia@v2 | |
| - run: | | |
| "$HESTIA_BIN" gc ${{ inputs.dry-run && '--dry-run' || '' }} | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} |