ci: add label sync workflow from .github/labels.yml

This commit is contained in:
SnapOtter
2026-05-16 16:10:02 +08:00
parent fa50266ea4
commit 6e773751f6
+21
View File
@@ -0,0 +1,21 @@
name: Sync Labels
on:
push:
branches: [main]
paths: [.github/labels.yml]
workflow_dispatch:
permissions:
issues: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2
with:
config-file: .github/labels.yml
delete-other-labels: false
token: ${{ secrets.GITHUB_TOKEN }}