From da1ffac6802d00fb3aa70e0e60f07a8c93b7febe Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Fri, 9 Feb 2024 14:48:36 -0800 Subject: [PATCH] chore: Fix user survey actions script (apollographql/apollo-ios-dev#263) --- .github/workflows/issue-close-user-survey.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-close-user-survey.yml b/.github/workflows/issue-close-user-survey.yml index fdaef3bd8f..7a2825410e 100644 --- a/.github/workflows/issue-close-user-survey.yml +++ b/.github/workflows/issue-close-user-survey.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'apollographql/apollo-ios' steps: - - run: - if [ "$AUTHOR" == "MEMBER" ] && [ "$COMMENTS" == 0 ]; then + - run: | + if [ "$AUTHOR" == "MEMBER" ] && (( $COMMENTS == 0 )); then echo "Issue opened by member with no comments, skipping user survey." else gh issue comment "$NUMBER" --body "$BODY"