Label Sync #232
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Label Sync" | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
paths: [".github/labels.yaml"] | |
schedule: | |
- cron: "0 0 * * *" # Every day at midnight | |
permissions: | |
issues: write | |
jobs: | |
label-sync: | |
name: Label Sync | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: .github/labels.yaml | |
- name: Sync Labels | |
uses: EndBug/label-sync@v2 | |
with: | |
config-file: .github/labels.yaml | |
delete-other-labels: true |