Skip to content

Commit

Permalink
Add GitHub Action to delete stale branches
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshyadavdev committed May 23, 2024
1 parent 4b8e067 commit b05512c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/delete-stale-branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Delete Stale Branches

on:
schedule:
- cron: '0 12 * * 5' # Run every Friday at 12 pm CET

jobs:
delete_stale_branches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Delete branches older than 100 days
uses: dev-drprasad/[email protected]
with:
max-age: '100d'
delete-merged-branches: 'true'
exclude-branches: 'master,main,develop'

0 comments on commit b05512c

Please sign in to comment.