From fccb2e06b8287ea40b6475718c1267605e28cbe3 Mon Sep 17 00:00:00 2001 From: Byungjin Park Date: Mon, 27 May 2024 02:06:54 +0900 Subject: [PATCH] Fix labeler action --- .github/labeler.yaml | 8 ++++++-- .github/workflows/pull-request-labeler.yaml | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/labeler.yaml b/.github/labeler.yaml index 426acd3..29fe867 100644 --- a/.github/labeler.yaml +++ b/.github/labeler.yaml @@ -1,6 +1,10 @@ # Modules ":floppy_disk: project": -- modules/project/**/* +- changed-files: + - any-glob-to-any-file: + - modules/project/**/* ":floppy_disk: workspace": -- modules/workspace/**/* +- changed-files: + - any-glob-to-any-file: + - modules/workspace/**/* diff --git a/.github/workflows/pull-request-labeler.yaml b/.github/workflows/pull-request-labeler.yaml index d5ac851..aac2537 100644 --- a/.github/workflows/pull-request-labeler.yaml +++ b/.github/workflows/pull-request-labeler.yaml @@ -7,12 +7,17 @@ jobs: label-pr: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: - name: Add Labels for PR uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/labeler.yaml + dot: true sync-labels: true - name: Add PR Size Labels for PR