pr-labeler.yml

 1name: "PR Path Labeler"
 2
 3on:
 4  pull_request_target:
 5    types: [opened, synchronize, reopened, ready_for_review]
 6
 7permissions:
 8  contents: read
 9  pull-requests: write
10
11jobs:
12  label:
13    if: >
14      ${{ !startsWith(github.event.pull_request.title, 'chore(deps):')
15          && !contains(fromJSON('["chore/sync-gomod2nix","chore/update-flake-lock","update-screenshots","update-demo-gif"]'), github.head_ref) }}
16    runs-on: ubuntu-latest
17    steps:
18      - uses: actions/labeler@v6
19        with:
20          repo-token: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
21          configuration-path: .github/pr-paths.yml
22          sync-labels: false
23          dot: true