-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
51 lines (46 loc) · 1.68 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
name: 'Cloudbase Autolabeller'
description: |
One-stop solution for managing all your labels with a crystal-clear config.
author: Cloudbase Solutions Srl (@cloudbase)
inputs:
token:
description: |
GitHub token to use for the labelling actions. ('${ secrets.GITHUB_TOKEN }')
Can be a 'classic' token or a 'fine-grained' token with full repo/issue/PR access.
default: ${{ github.token }}
target:
description: |
Target for the labelling action.
Can be the full URL or resource path of the repo or repo object, such as:
- myuser/myrepo
- muyser/myrepo/pull/N
- myuser/myrepo/issues/N
required: false
target-from-action-env:
description: |
The '${ toJSON(github) }' variable present in GitHub actions to extract the target.
Runs triggered on the repo will result in the labelling of the whole repo.
Runs triggered on PRs/Issues will only result in the labelling of said item.
required: false
command:
description: |
The labelling command to run. Options are 'generate', 'sync', and 'purge'.
default: sync
config-path:
description: |
Path to the labels configuration file within your repository.
Default is '.github/autolabels.yml'
default: .github/autolabels.yml
outputs:
# Can be referenced using ${{ action_id.outputs.labels }}
labels:
description: |
JSON list containing objects with the label definitions which were added/modified
for the given target.
runs:
using: 'docker'
# NOTE: Dockerfile's entrypoint automatically sources all inputs from env.
image: 'docker://ghcr.io/aznashwan/github-autolabeler:main'
branding:
icon: 'bookmark'
color: 'purple'