All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 2m51s
## Summary Monthly tooling dependency update per [[update-tooling-dependencies]]. - **Prek hooks:** trufflehog v3.93.4→v3.94.0, ruff v0.15.2→v0.15.7, shfmt v3.12.0-2→v3.13.0-1, ansible-lint floor→26.3.0, ansible-core floor→2.18 - **Fly.io proxy:** nginx 1.28.2→1.29.6, Grafana Alloy v1.13.1→v1.14.1 - **Forgejo workflows:** actions/checkout v4.3.1→v6.0.2 (SHA-pinned across all 5 workflows) - **Mise tasks:** tightened Python lower bounds — rich≥14.0.0, typer≥0.24.0, httpx≥0.28.1, pyyaml≥6.0.2 ## Test plan - [x] `prek run --all-files` passes - [ ] Verify Fly.io deploy succeeds after merge (nginx minor bump + Alloy bump) - [ ] Spot-check a workflow run with the new actions/checkout v6 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: #307
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
# Automated Branch Cleanup
|
|
#
|
|
# Deletes remote branches that have been merged into main and are older
|
|
# than a cutoff (default 30 days). Detects both fast-forward and
|
|
# squash-merged branches via the Forgejo API.
|
|
#
|
|
# Runs on a schedule (~every 10 days) and can be triggered manually
|
|
# with a custom cutoff for testing.
|
|
|
|
name: Branch Cleanup
|
|
|
|
on:
|
|
schedule:
|
|
# Approximately every 10 days: 1st, 11th, 21st of each month at 06:00 UTC
|
|
- cron: '0 6 1,11,21 * *'
|
|
workflow_dispatch:
|
|
inputs:
|
|
cutoff:
|
|
description: 'Delete branches older than N days'
|
|
required: false
|
|
default: '30'
|
|
type: string
|
|
|
|
jobs:
|
|
cleanup:
|
|
runs-on: k8s
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Run branch cleanup
|
|
env:
|
|
FORGEJO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
CUTOFF="${{ inputs.cutoff || '30' }}"
|
|
echo "Running branch cleanup with cutoff=${CUTOFF} days..."
|
|
uv run --script mise-tasks/branch-cleanup \
|
|
--remote-only \
|
|
--yes \
|
|
--cutoff "$CUTOFF"
|