name: 🗂️ Auto Label PR on: pull_request_target: types: [opened, reopened, synchronize, ready_for_review] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: labeler: name: PR Labeler - Apply and Sync Labels runs-on: ubuntu-latest timeout-minutes: 1 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} permissions: contents: read pull-requests: write steps: - name: Apply and Sync Labels uses: actions/labeler@v5 with: sync-labels: true # Remove labels if the file paths no longer match configuration-path: .github/labeler.yml