Merge 'Fix labeler.yml ' from Kim Seon Woo

## Changes
- labeler@v4 -> labeler@v5
- GH_TOKEN -> GITHUB_TOKEN
- add sparse checkout action(to properly read `.github/labeler.yml`)
- fix `.github/labeler.yml` which is where the configurations go
## Reference
- Tests in my forked repository
![image](https://github.com/user-
attachments/assets/49ed8e96-7bc9-419b-beca-e838c86fb2d7)
![image](https://github.com/user-
attachments/assets/cab87024-933c-4eb6-a025-c2f8faf0af2f)

Closes #825
This commit is contained in:
Pekka Enberg
2025-01-30 13:24:15 +02:00
2 changed files with 19 additions and 9 deletions

18
.github/labeler.yml vendored
View File

@@ -1,17 +1,23 @@
bindings/java:
- 'bindings/java/**'
- changed-files:
- any-glob-to-any-file: 'bindings/java/**'
bindings/go:
- 'bindings/go/**'
- changed-files:
- any-glob-to-any-file: 'bindings/go/**'
bindings/python:
- 'bindings/python/**'
- changed-files:
- any-glob-to-any-file: 'bindings/python/**'
bindings/rust:
- 'bindings/rust/**'
- changed-files:
- any-glob-to-any-file: 'bindings/rust/**'
bindings/wasm:
- 'bindings/wasm/**'
- changed-files:
- any-glob-to-any-file: 'bindings/wasm/**'
core:
- 'core/**'
- changed-files:
- any-glob-to-any-file: 'core/**'

View File

@@ -11,7 +11,11 @@ jobs:
pull-requests: write
steps:
- uses: actions/labeler@v4
- uses: actions/checkout@v4
with:
repo-token: "${{ secrets.GH_TOKEN }}"
configuration-path: .github/labeler.yml
sparse-checkout: |
.github
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: '.github/labeler.yml'