Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Sync labels
on:
workflow_dispatch:
schedule:
# Run at the end of the day (most likely UTC)
- cron: "0 0 * * *"
push:
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: false # After initial run, and verification change this to true
dry-run: false
token: ${{ secrets.SYNC_TOKEN }} # Used when updating the labels on the repository.