Skip to content

Commit

Permalink
fix: deprecated set-output (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
niri81 authored Nov 20, 2024
1 parent 0482f68 commit 90020a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ runs:
- name: get-team-members
id: get-members
shell: bash
run: echo ::set-output name=data::$(gh api --paginate -X GET /orgs/$ORG/teams/$TEAM_SLUG/members\?role=$ROLE | jq 'reduce inputs as $i (.; . += $i)')
run: echo data=$(gh api --paginate -X GET /orgs/$ORG/teams/$TEAM_SLUG/members\?role=$ROLE | jq 'reduce inputs as $i (.; . += $i)') >> "$GITHUB_OUTPUT"
env:
ORG: ${{ inputs.org }}
TEAM_SLUG: ${{ inputs.team_slug }}
ROLE: ${{ inputs.role }}
GH_TOKEN: ${{ inputs.token }}
- id: members
run: echo '::set-output name=members::${{ join(fromJson(steps.get-members.outputs.data).*.login) }}'
run: echo 'members=${{ join(fromJson(steps.get-members.outputs.data).*.login) }}' >> "$GITHUB_OUTPUT"
shell: bash

0 comments on commit 90020a0

Please sign in to comment.