generated from srealmoreno/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
109 lines (93 loc) · 3.01 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Label Sync Action
description:
Keeps your labels in sync in a GitHub repo(s) from a config file.
Manage all tags from all your repos in a single place.
author: Salvador Real [srealmoreno] <srealmoreno@srealmoreno.com>
branding:
icon: tag
color: blue
runs:
using: node20
main: dist/label-sync-action.cjs
inputs:
token:
required: false
default: ${{ github.token }}
description: Token to use for edit the labels of the repos
config-file:
required: false
default: .github/labels.yml
description:
Path(s) (and/or URL(s)) to the JSON or YAML file containing the label
definitions.
clean-labels:
required: false
default: 'false'
description:
Clean labels not defined in the config file from the repo(s).
repositories:
required: false
description:
Repository or List of repositories to sync the labels. (Full name e.g. 'srealmoreno/test-repo')
This option cannot be combined with `auto-discover-repos` or its options
auto-discover-repos:
required: false
default: 'false'
description:
Discover the list of repositories automatically.
See options below
1.owner
2.account-type
3.exclude-repos
4.exclude-forked-repos
6.exclude-archived-repos
7.exclude-disabled-repos
8.exclude-private-repos
owner:
required: false
default: ${{ github.repository_owner }}
description:
Option 1 of `auto-discover-repos`.
Owner of the repositories to sync the labels.
account-type:
required: false
default: ${{ github.event.repository.owner.type }}
description:
Option 2 of `auto-discover-repos`.
Type of account to use to discover the repositories.
Can be either `org` or `user`.
exclude-repos:
required: false
default: ''
description:
Option 3 of `auto-discover-repos`.
string | string[] | regExp
to exclude from the list of repositories to sync the labels.
the regex can be RegExp(js) literal notation e.g. /my-repo/g
Note. The verification will be done only to the name of the
repository excluding the owner and the slash (/)
e.g. srealmoreno/my-repo -> my-repo
exclude-forked-repos:
required: true
default: 'true'
description:
Option 4 of `auto-discover-repos`.
Exclude forked repositories from the list of repositories to sync the labels.
exclude-archived-repos:
required: false
default: 'true'
description:
Option 6 of `auto-discover-repos`.
Exclude archived repositories from the list of repositories to sync the labels.
exclude-disabled-repos:
required: false
default: 'true'
description:
Option 7 of `auto-discover-repos`.
Exclude disabled repositories from the list of repositories to sync the labels.
exclude-private-repos:
required: true
default: 'true'
description:
Option 8 of `auto-discover-repos`.
Exclude private repositories from the list of repositories to sync the labels.