Cleanup old branches #13
This file contains 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: Cleanup old branches | |
on: | |
schedule: | |
- cron: "0 0 * * 0" | |
workflow_dispatch: | |
jobs: | |
housekeeping: | |
name: Cleanup old branches | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run delete-old-branches-action | |
uses: beatlabs/[email protected] | |
with: | |
repo_token: ${{ github.token }} | |
date: '1 month ago' | |
dry_run: false | |
extra_protected_branch_regex: ^(main)$ | |
exclude_open_pr_branches: false |