Skip to content

Label Sync

Label Sync #3372

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Label Sync"
on:
workflow_dispatch:
push:
branches: ["main"]
paths: [".github/labels.yml"]
schedule:
- cron: "0 0 * * *"
pull_request_target:
branches: ["main"]
permissions:
issues: write
jobs:
label-sync:
name: Label Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
sparse-checkout: .github/labels.yml
- name: Sync Labels
uses: EndBug/label-sync@v2
with:
config-file: .github/labels.yml
delete-other-labels: true
labeler:
name: Labeler
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Labeler
uses: actions/labeler@v6
with:
configuration-path: .github/labeler.yml