mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-22 07:29:17 +00:00
Hestia v1.0 moved action.yml to the repo root, so the path becomes 'Mic92/hestia@<sha>' instead of 'Mic92/hestia/action@<sha>'.
39 lines
1.1 KiB
YAML
39 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
- uses: NixOS/nix-installer-action@6b8548fe06acfb0155a50ab5d561accb215764cc # main
|
|
- uses: Mic92/hestia@7ae4509d1c3cacd4a31b91d9ad308d74e0b5a053 # v1.0.2
|
|
- name: Run garbage collection
|
|
run: '"${HESTIA_BIN}" gc ${{ inputs.dry-run && ''--dry-run'' || '''' }}'
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|