This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / .github / workflows / hestia-gc.yml
1.3 kB 45 lines
1name: hestia gc 2 3# Garbage collection of the hestia binary cache (ci.yml) in the GitHub 4# Actions cache, so it stays within the 10 GB quota. After hestia's own 5# .github/workflows/gc.yml. Only on the default branch: PR scopes die with 6# their PR, the default branch's scope grows without GC. 7 8# A second GC's repack races the first one's pack deletes; queue manual runs 9# behind the nightly one. 10concurrency: 11 group: hestia-gc 12 cancel-in-progress: false 13 14on: 15 schedule: 16 - cron: "23 4 * * *" # daily 04:23 UTC 17 workflow_dispatch: 18 inputs: 19 dry-run: 20 description: Plan only; do not repack, touch, or delete anything. 21 type: boolean 22 default: false 23 24permissions: 25 contents: read 26 27jobs: 28 gc: 29 runs-on: ubuntu-latest 30 permissions: 31 actions: write # REST cache deletes 32 contents: read 33 steps: 34 - uses: cachix/install-nix-action@v31 35 # for HESTIA_BIN and the cache API tokens; read-only, so its post step 36 # uploads nothing 37 - uses: Mic92/hestia@v3 38 with: 39 read-only: true 40 - env: 41 GITHUB_TOKEN: ${{ github.token }} 42 DRY_RUN: ${{ inputs.dry-run && '--dry-run' || '' }} 43 run: | 44 # shellcheck disable=SC2086 # empty or one flag 45 "$HESTIA_BIN" gc $DRY_RUN