-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.66 KB
/
sync-labels.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
# Source: https://github.com/marketplace/actions/label-sync
name: Sync labels
on:
# You can run this with every type of event, but it's better to run it only when you actually need it.
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '00 5 * * *'
jobs:
labels:
name: Pull & Import Labels
runs-on: ubuntu-latest
steps:
- uses: EndBug/label-sync@v2
with:
# If you want to use a config file, you can put its path or URL here, multiple files are also allowed (more info in the paragraphs below)
# config-file: .github/labels.yml
# as URL:
config-file: https://raw.githubusercontent.com/OpenATO/.github/main/.github/configs/labels.yml
# as multiple:
# config-file: |
# https://raw.githubusercontent.com/EndBug/label-sync/main/.github/labels.yml
# .github/labels.yml
# If you want to use a source repo, you can put is name here (only the owner/repo format is accepted)
# source-repo: owner/repo
# If you're using a private source repo or a URL that needs an 'Authorization' header, you'll need to add a custom token for the action to read it
request-token: ${{ secrets.LABEL_TOKEN }}
# If you want to delete any additional label, set this to true
delete-other-labels: true
# If you want the action just to show you the preview of the changes, without actually editing the labels, set this to true
dry-run: false
# You can change the token used to change the labels, this is the default one
token: ${{ secrets.LABEL_TOKEN }}