Merge pull request #11122 from cli/fix-pr-help-wanted-draft-if

Quote workflow conditional
This commit is contained in:
William Martin 2025-06-16 18:05:53 +02:00 committed by GitHub
commit cfc45042dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
PR_AUTHOR_TYPE: ${{ github.event.pull_request.user.type }}
if: !github.event.pull_request.draft
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