Skip to content

Commit a9f90e5

Browse files
authored
Merge pull request #37 from chocolatey/repo-sync/github/default
(maint) synced file(s) with chocolatey/.github
2 parents 2bd94a7 + e58ffc1 commit a9f90e5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/label-sync.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Sync labels
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
# Run at the end of the day (most likely UTC)
6+
- cron: "0 0 * * *"
7+
push:
8+
paths:
9+
- '.github/workflows/label-sync.yml'
10+
# Uncomment the following line if using a repository specific label file, also remove this comment line
11+
# - '.github/labels.yml'
12+
13+
jobs:
14+
labels:
15+
# We use ubuntu as the image, as it is typically faster and cheaper (on private repos).
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
# Uncomment the following uses statement block if using a repository specific label file, also remove this comment line
20+
#- uses: actions/checkout@v4
21+
# with:
22+
# sparse-checkout: .github/labels.yml
23+
- uses: EndBug/label-sync@v2
24+
with:
25+
config-file: |
26+
https://raw.githubusercontent.com/chocolatey/.github/main/.github/labels.yml
27+
# Uncomment the following line if using a repository specific label file, also remove this comment line
28+
# .github/labels.yml
29+
request-token: ${{ secrets.SYNC_TOKEN }} # Used when getting the config files.
30+
delete-other-labels: false # After initial run, and verification change this to true
31+
dry-run: false
32+
token: ${{ secrets.SYNC_TOKEN }} # Used when updating the labels on the repository.
33+

0 commit comments

Comments
 (0)