Files
headscale/.github/workflows/gc.yml
T
Kristoffer Dalby 712bd74017 .github: stop persisting checkout credentials
Only mike and vouch push; their checkouts keep the token, explicitly.
2026-11-20 19:47:15 +01:00

43 lines
1.1 KiB
YAML

name: Cache GC
# Garbage collection for the hestia binary cache. Must run on the default
# branch: a PR job's cache scope is read-only towards the default branch and
# dies with the PR, but the default-branch scope grows forever without GC.
concurrency:
group: hestia-gc
cancel-in-progress: false
on:
schedule:
# Daily, off-peak (UTC).
- cron: "23 3 * * *"
workflow_dispatch:
inputs:
dry-run:
description: Plan only; do not repack, touch, or delete anything.
type: boolean
default: false
permissions:
contents: read
jobs:
gc:
runs-on: ubuntu-latest
permissions:
# REST cache deletes need actions:write.
actions: write
contents: read
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: NixOS/nix-installer-action@v1.0.0
- uses: Mic92/hestia@v3.1.0
- name: Run garbage collection
run: |
"${HESTIA_BIN}" gc ${{ inputs.dry-run && '--dry-run' || '' }}
env:
GITHUB_TOKEN: ${{ github.token }}