forked from ChidimmaOfodum/deskeando
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 774 Bytes
/
Copy pathmain.yml
File metadata and controls
29 lines (24 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: cleanup-old-branches-dmf
on:
# Run daily at midnight
schedule:
- cron: "0 1 * * 1"
# Allow workflow to be manually run from the GitHub UI
workflow_dispatch:
jobs:
cleanup_old_branches:
runs-on: ubuntu-latest
name: Sanitize my repo CDO
steps:
- name: Delete those pesky dead branches
uses: drew-dectech/github-action-inactive-branches@1.2.1
id: delete_stuff
with:
github_token: ${{ github.token }}
last_commit_age_days: 14
ignore_branches: master,dev
ignore_suffix: '*'
# Disable dry run and actually get stuff deleted
dry_run: yes
- name: Get output
run: "echo 'Deleted branches: ${{ steps.delete_stuff.outputs.deleted_branches }}'"