Skip to content

Commit c6dea60

Browse files
Create repository_maintenance.yml
1 parent bcac293 commit c6dea60

File tree

1 file changed

+20
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)