Skip to content

Commit dfbe256

Browse files
authored
(maint) Update label sync workflow
There have been some upstream changes to the label sync workflow and I want to make sure that they are the same here.
1 parent db8b3b5 commit dfbe256

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/label-sync.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,25 @@ on:
55
# Run at the end of the day (most likely UTC)
66
- cron: "0 0 * * *"
77
push:
8-
branches:
9-
- "master"
108
paths:
11-
- ".github/labels.yml"
9+
- '.github/workflows/label-sync.yml'
10+
- '.github/labels.yml'
1211

1312
jobs:
1413
labels:
1514
# We use ubuntu as the image, as it is typically faster and cheaper (on private repos).
1615
runs-on: ubuntu-latest
1716

1817
steps:
19-
- uses: actions/[email protected]
20-
- uses: EndBug/[email protected]
18+
- uses: actions/checkout@v4
19+
with:
20+
sparse-checkout: .github/labels.yml
21+
- uses: EndBug/label-sync@v2
2122
with:
2223
config-file: |
2324
https://raw.githubusercontent.com/chocolatey/.github/master/.github/labels.yml
2425
.github/labels.yml
2526
request-token: ${{ secrets.SYNC_TOKEN }} # Used when getting the config files.
26-
delete-other-labels: true
27+
delete-other-labels: true # After initial run, and verification change this to true
2728
dry-run: false
28-
token: ${{ secrets.SYNC_TOKEN }} # Used when updating the lables on the repository
29+
token: ${{ secrets.SYNC_TOKEN }} # Used when updating the labels on the repository.

0 commit comments

Comments
 (0)