diff --git a/.github/labeler.yml b/.github/labeler.yml index f8c27c4118..54b073ace4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,4 +1,6 @@ windows: - - windows/**/* + - changed-files: + - any-glob-to-any-file: 'windows/**/*' macos: - - macos/**/* + - changed-files: + - any-glob-to-any-file: 'macos/**/*' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index fa4b8981ad..b605c6a696 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,18 +1,14 @@ name: "Pull Request Labeler" -permissions: - contents: read - pull-requests: write - on: pull_request_target: types: [opened, synchronize, reopened, ready_for_review, locked] jobs: triage: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - configuration-path: '.github/labeler.yml' + - uses: actions/labeler@v5