Backport of Replace `hub` with `gh` for member roles on JIRA sync checks into release/1.16.x (#19122)
backport of commit ff451f3897377544132c10c9a4a46c741b0042f6 Co-authored-by: David Yu <dyu@hashicorp.com>
This commit is contained in:
parent
c7e3db2c60
commit
b11f007fca
|
@ -40,7 +40,7 @@ jobs:
|
|||
id: is-team-member
|
||||
run: |
|
||||
TEAM=consul
|
||||
ROLE="$(hub api orgs/hashicorp/teams/${TEAM}/memberships/${{ github.actor }} | jq -r '.role | select(.!=null)')"
|
||||
ROLE="$(gh api orgs/hashicorp/teams/${TEAM}/memberships/${{ github.actor }} | jq -r '.role | select(.!=null)')"
|
||||
if [[ -n ${ROLE} ]]; then
|
||||
echo "Actor ${{ github.actor }} is a ${TEAM} team member"
|
||||
echo "MESSAGE=true" >> $GITHUB_OUTPUT
|
||||
|
|
Loading…
Reference in New Issue