Skip to content

Commit

Permalink
[infra] fixed URL params and secret token for gh CLI (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelengelen authored May 6, 2024
1 parent 9f44c80 commit 3e10e3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/reusable-add-reviewers-to-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ jobs:
pull-requests: write
steps:
- id: get-members
env:
GH_TOKEN: ${{ secrets.token }}
run: |
DATA=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/orgs/${{ github.repository_owner }}/teams/${{ inputs.team-slug }}/members?role=maintainer&per_page=100 \
/orgs/${{ github.repository_owner }}/teams/${{ inputs.team-slug }}/members \
| jq 'reduce inputs as $i (.; . += $i)') \
echo "data=$DATA" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 3e10e3e

Please sign in to comment.