-
Notifications
You must be signed in to change notification settings - Fork 36
/
action.yml
45 lines (45 loc) · 1.33 KB
/
action.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# action.yml
name: "Delete old branches"
description: "Delete branches which are older than certain period of time"
author: "Markos Chandras"
inputs:
repo_token:
description: "The GITHUB_TOKEN secret"
required: true
date:
description: "A git-log compatible date format"
required: true
dry_run:
description: "Run in dry-run mode so no branches are deleted"
required: false
default: true
delete_tags:
description: "Also look for tags to delete"
required: false
default: false
minimum_tags:
description: "Minimum number of tags to keep"
required: false
default: false
default_branches:
description: "Default branch(es) to exclude"
required: false
default: main,master
extra_protected_branch_regex:
description: "grep extended (ERE) compatible regex for additional branches to exclude"
required: false
extra_protected_tag_regex:
description: "grep extended (ERE) compatible regex for additional tags to exclude"
required: false
exclude_open_pr_branches:
description: "Exclude branches that have an open pull request"
required: false
default: true
outputs:
was_dry_run:
description: "Ran in dry-run mode so no branches were deleted"
deleted_branches:
description: "List of branches that were deleted"
runs:
using: "docker"
image: "Dockerfile"