Remove Stale Branches #176
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: | |
| schedule: | |
| - cron: "0 0 * * *" # Everday at midnight | |
| workflow_dispatch: # Allows manual trigger from GitHub UI | |
| permissions: | |
| contents: write | |
| jobs: | |
| remove-stale-branches: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: fpicalausa/[email protected] | |
| with: | |
| dry-run: false # Check out the console output before setting this to false | |
| exempt-authors-regex: "^dependabot" | |
| days-before-branch-stale: 90 | |
| days-before-branch-delete: 7 | |
| operations-per-run: 100 | |
| exempt-branches-regex: "^(main|release-dev/.*|v[0-9]+\\.[0-9]+\\.[0-9]+)$" | |
| ignore-unknown-authors: true | |
| default-recipient: "bowenli86" |