Skip to content

Commit

Permalink
Merge pull request #10603 from kasemAlem/KONFLUX-2688
Browse files Browse the repository at this point in the history
feat(KONFLUX-2688): add github action to delete old branches
  • Loading branch information
kasemAlem authored Sep 9, 2024
2 parents 34da5a8 + 4e13689 commit 86f49bd
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 week ago'
dry_run: true
extra_protected_branch_regex: ^(main)$
exclude_open_pr_branches: false

0 comments on commit 86f49bd

Please sign in to comment.