name: Sync labels
on:
    workflow_dispatch: {}
    schedule:
        - cron: "0 1 * * *" # 1am every day
    push:
        branches:
            - develop
        paths:
            - .github/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: |
                element-hq/element-meta
                .github/labels.yml
            DELETE: true
            WET: true
        secrets:
            ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
