Skip to content

Commit 051a732

Browse files
committed
Fix Labeler CI
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent b4eac5e commit 051a732

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.github/labeler.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"documentation :notebook:":
16-
- changed-files:
17-
- any-glob-to-any-file: ['contrib/*', '**/*.md']
15+
documentation :notebook:
16+
- 'contrib/**'
17+
- '**/*.md'
1818
kubernetes:
19-
- changed-files:
20-
- any-glob-to-any-file: ['kubernetes/*', 'hack/builder-gen.sh', 'hack/deepcopy-gen.sh', 'Makefile']
19+
- 'kubernetes/**'
20+
- 'hack/builder-gen.sh'
21+
- 'hack/deepcopy-gen.sh'
22+
- 'Makefile'

.github/workflows/pull_request_labeler.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,20 @@
1414

1515
name: "Pull Request Labeler"
1616
on:
17-
- pull_request_target
17+
pull_request_target:
18+
19+
permissions:
20+
contents: read # for reading code / config
21+
pull-requests: write # to add/remove PR labels
22+
issues: write # to create new labels if they don't exist
1823

1924
jobs:
2025
labeler:
21-
permissions:
22-
contents: read
23-
pull-requests: write
2426
runs-on: ubuntu-latest
2527
steps:
26-
- uses: actions/labeler@v5
28+
- uses: actions/labeler@v5
29+
with:
30+
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
configuration-path: .github/labeler.yml
32+
sync-labels: false
33+
dot: true

0 commit comments

Comments
 (0)