diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da65af24..b864f944 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,11 @@ jobs: id: pr_author run: echo "::set-output name=author::${{ github.event.pull_request.user.login }}" + - name: Debug PR Author + run: | + echo "PR Author: " + echo "${{ steps.pr_author.outputs.author }}" + - name: Select Reviewers id: select_reviewers run: | @@ -54,6 +59,11 @@ jobs: echo "::set-output name=reviewers::$(printf '%s' "${selected_reviewers[@]}")" + - name: Debug Selected Reviewers + run: | + echo "Selected Reviewers: " + echo "${{ steps.select_reviewers.outputs.reviewers }}" + - name: Request Review if: github.actor != steps.pr_author.outputs.author # Exclude the author uses: octokit/request-action@v2.x @@ -61,4 +71,4 @@ jobs: route: POST /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers mediaType: '{"previews":["luke-cage"]}' token: ${{ secrets.GITHUB_TOKEN }} - reviewers: ${{ steps.select_reviewers.outputs.reviewers[0] }}, ${{ steps.select_reviewers.outputs.reviewers[1] }} + reviewers: ${{ join(steps.select_reviewers.outputs.reviewers, ', ') }}