From 677e16a830f188d02d9ecadbe87e9813ffaf21eb Mon Sep 17 00:00:00 2001 From: David Yu Date: Thu, 5 Oct 2023 15:56:20 -0700 Subject: [PATCH] Replace `hub` with `gh` for member roles on JIRA sync checks (#19089) Update jira-pr.yaml Change from `hub` to `gh` for checking member roles --- .github/workflows/jira-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jira-pr.yaml b/.github/workflows/jira-pr.yaml index f63f7af531..a40bb0ae0f 100644 --- a/.github/workflows/jira-pr.yaml +++ b/.github/workflows/jira-pr.yaml @@ -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