diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 80100fc845..9a74f6fa1b 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -27,9 +27,7 @@ jobs: baseLabel: '${{ github.event.pull_request.base.label }}', number: ${{ github.event.pull_request.number }}, title: process.env.PULL_REQUEST_TITLE, - labelsNames: ${{ github.event.pull_request.labels }}.map( - (label) => label.name - ) + labelsNames: ${{ toJson(github.event.pull_request.labels.*.name) }} } // Select label based on the branch name