Skip to content

Commit

Permalink
Create delete-old-branches.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
psturc authored Apr 19, 2024
1 parent be627f4 commit 4df7014
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/delete-old-branches.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
repo_token: ${{ github.token }}
date: '1 month ago'
dry_run: false
extra_protected_branch_regex: ^(main)$
exclude_open_pr_branches: false

0 comments on commit 4df7014

Please sign in to comment.