From fe9b6830773c5ef364b0f4b554ccd340c86ee8f5 Mon Sep 17 00:00:00 2001 From: Michel Engelen <32863416+michelengelen@users.noreply.github.com> Date: Sun, 5 May 2024 11:57:06 +0200 Subject: [PATCH] [infra] Fix automated reviewers assignment workflow - part 3 (#13012) --- .github/workflows/add-release-reviewers.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/add-release-reviewers.yml b/.github/workflows/add-release-reviewers.yml index d9c09de4e35f0..aff6ea7ef5bbf 100644 --- a/.github/workflows/add-release-reviewers.yml +++ b/.github/workflows/add-release-reviewers.yml @@ -29,7 +29,6 @@ jobs: /orgs/$ORG/teams/$TEAM_SLUG/members?role=maintainer&per_page=100 \ | jq 'reduce inputs as $i (.; . += $i)') \ echo "data=$DATA" >> $GITHUB_OUTPUT - echo "members=${{ join(fromJson($DATA).*.login) }}" >> $GITHUB_OUTPUT # assign reviewers - id: assign-reviewers @@ -40,4 +39,4 @@ jobs: -H "Authorization: Bearer $GITHUB_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$ORG/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d '{"reviewers":[${{ steps.get-members.outputs.members }}]}' \ + -d '{"reviewers":[${{ join(fromJson(steps.get-members.outputs.data).*.login) }}]}' \