Backport of Replace `hub` with `gh` for member roles on JIRA sync checks into release/1.16.x (#19122)

backport of commit ff451f3897

Co-authored-by: David Yu <dyu@hashicorp.com>
pull/19127/head
hc-github-team-consul-core 2023-10-09 13:52:39 -04:00 committed by GitHub
parent 4e98c51c55
commit c44253182e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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