forked from NuGet/NuGet.Client
-
Notifications
You must be signed in to change notification settings - Fork 12
36 lines (34 loc) · 1.33 KB
/
label-sync.yml
File metadata and controls
36 lines (34 loc) · 1.33 KB
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
name: Sync labels
on:
workflow_dispatch:
schedule:
# Run at the end of the day (most likely UTC)
- cron: "0 0 * * *"
push:
branches:
- main
- master
- develop
paths:
- '.github/workflows/label-sync.yml'
# Uncomment the following line if using a repository specific label file, also remove this comment line
# - '.github/labels.yml'
jobs:
labels:
# We use ubuntu as the image, as it is typically faster and cheaper (on private repos).
runs-on: ubuntu-latest
steps:
# Uncomment the following uses statement block if using a repository specific label file, also remove this comment line
#- uses: actions/checkout@v4
# with:
# sparse-checkout: .github/labels.yml
- uses: EndBug/label-sync@v2
with:
config-file: |
https://raw.githubusercontent.com/chocolatey/.github/main/.github/labels.yml
# Uncomment the following line if using a repository specific label file, also remove this comment line
# .github/labels.yml
request-token: ${{ secrets.SYNC_TOKEN }} # Used when getting the config files.
delete-other-labels: true # After initial run, and verification change this to true
dry-run: false
token: ${{ secrets.SYNC_TOKEN }} # Used when updating the labels on the repository.