diff --git a/.github/workflows/delete-old-branches.yml b/.github/workflows/delete-old-branches.yml new file mode 100644 index 0000000000..51da738ad6 --- /dev/null +++ b/.github/workflows/delete-old-branches.yml @@ -0,0 +1,20 @@ +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/delete-old-branches-action@v0.0.10 + with: + repo_token: ${{ github.token }} + date: '1 week ago' + dry_run: true + extra_protected_branch_regex: ^(main)$ + exclude_open_pr_branches: false