name: Sync labels
on:
  workflow_dispatch: {}

  push:
    branches:
      - livekit
    paths:
      - .github/labels.yml
      - .github/workflows/sync-labels.yml

permissions: {} # We use ELEMENT_BOT_TOKEN instead

jobs:
  sync-labels:
    uses: element-hq/element-meta/.github/workflows/sync-labels.yml@7f2f93fb9b52ece7a0998f60e64862aa203c1746
    with:
      LABELS: |
        .github/labels.yml
      DELETE: true
      WET: true
    secrets:
      ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
