--- # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json name: "Label Sync" on: workflow_dispatch: push: branches: - dev_2.0 paths: [".github/labels.yaml"] pull_request_target: types: [opened, synchronize, reopened] branches: - dev_2.0 paths-ignore: - 'archive/**' jobs: label-sync: name: Label Sync runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Sync Labels uses: EndBug/label-sync@v2 with: config-file: .github/labels.yaml delete-other-labels: true