name: 'Labeler'
on:
  pull_request_target:

jobs:
  labeler:
    runs-on: ubuntu-latest

    steps:
      - name: Label PR
        uses: actions/labeler@v4
        with:
          repo-token: '${{ secrets.GITHUB_TOKEN }}'
          sync-labels: true
