Remove stale branches #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Remove stale branches | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| dry-run: | |
| description: 'Run in dry-run mode (no actual branch deletion)' | |
| required: true | |
| default: 'false' | |
| type: boolean | |
| schedule: | |
| - cron: "0 0 * * *" # Everday at midnight | |
| permissions: write-all | |
| jobs: | |
| remove-stale-branches: | |
| name: Remove Stale Branches | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: fpicalausa/[email protected] | |
| with: | |
| ignore-unknown-authors: true | |
| default-recipient: "kobergj" | |
| dry-run: ${{ inputs.dry-run || 'false' }} # fallback to dry-run | |
| exempt-branches-regex: "^(main$|master$|stable-|release-|docs$|docs-stable-)" | |
| exempt-protected-branches: true | |
| operations-per-run: 30 | |