Merge pull request #11133 from cli/wm/execute-gh

Ensure gh executes in workflow check script
This commit is contained in:
William Martin 2025-06-16 21:02:50 +02:00 committed by GitHub
commit 8e5ed00ad7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,8 +23,7 @@ jobs:
if: "!github.event.pull_request.draft"
run: |
# Skip if PR is from a bot or org member
if [ "$PR_AUTHOR_TYPE" = "Bot" ] || "gh api orgs/cli/public_members/${PR_AUTHOR}" --silent 2>/dev/null
then
if [ "$PR_AUTHOR_TYPE" = "Bot" ] || gh api orgs/cli/public_members/"${PR_AUTHOR}" --silent 2>/dev/null; then
exit 0
fi