ci: Run stable branch removal every monday (#31725)

This commit is contained in:
Matsu
2026-06-04 10:14:06 +00:00
committed by GitHub
parent 0b2a6328cf
commit 8eb25b78af
+4 -4
View File
@@ -1,8 +1,8 @@
name: 'Util: Clean Stale Branches'
on:
# schedule:
# - cron: "0 0 * * *" # Everyday at midnight
schedule:
- cron: "0 10 * * 1" # Every monday
workflow_dispatch:
inputs:
dry-run:
@@ -40,6 +40,6 @@ jobs:
- name: Clean stale branches
env:
GITHUB_TOKEN: ${{ github.token }}
STALE_DAYS: ${{ inputs.days }}
EXCLUDE_BRANCHES: ${{ inputs.exclude }}
STALE_DAYS: ${{ inputs.days || '100' }}
EXCLUDE_BRANCHES: ${{ inputs.exclude || '' }}
run: node .github/scripts/stale/clean-stale-branches.mjs --days="$STALE_DAYS" ${{ !inputs.dry-run && '--execute' || '--dry-run' }}