Skip to content

Commit 66e337b

Browse files
authored
ci: add github action to clean up stale branches (#8227)
* ci: add github action to clean up stale branches * switch to /maintenance
1 parent 87159c0 commit 66e337b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Cleanup Stale Branches
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *' # This schedule runs the workflow at midnight every day
7+
8+
jobs:
9+
cleanup-stale-branches:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Cleanup Stale Branches
13+
uses: cbrgm/cleanup-stale-branches-action@v1
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
repository: ${{ github.repository }}
17+
# ignore-branches: ""
18+
ignored-prefixes: "maintenance/"
19+
last-commit-age-days: 90
20+
dry-run: true
21+
rate-limit: true

0 commit comments

Comments
 (0)