From 79da888c455cdae4cd955fd04c7b53da1b6dca27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=A0=EC=9A=B0?= Date: Thu, 30 Jan 2025 07:38:58 +0900 Subject: [PATCH 1/3] Fix labeler.yml --- .github/workflows/labeler.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c059325a8..2f5bf0890 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -13,5 +13,4 @@ jobs: steps: - uses: actions/labeler@v4 with: - repo-token: "${{ secrets.GH_TOKEN }}" - configuration-path: .github/labeler.yml + repo-token: "${{ secrets.GITHUB_TOKEN }}" From 0c2b774714858bd55c02a2fc77e67295ce2fc7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=A0=EC=9A=B0?= Date: Thu, 30 Jan 2025 08:01:44 +0900 Subject: [PATCH 2/3] Add spare-checkout - Related issue: https://github.com/actions/labeler/issues/814#issuecomment-2478374811 --- .github/workflows/labeler.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 2f5bf0890..9e799a80f 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -11,6 +11,11 @@ jobs: pull-requests: write steps: - - uses: actions/labeler@v4 + - uses: actions/checkout@v4 + with: + sparse-checkout: | + .github + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: '.github/labeler.yml' From 0101946d6767facbd86270b3f5c49ba61f74787a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=A0=EC=9A=B0?= Date: Thu, 30 Jan 2025 08:01:50 +0900 Subject: [PATCH 3/3] Fix configuration file --- .github/labeler.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index f1553088e..82f8d5222 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -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/**'