Skip to content

Commit aede3ca

Browse files
committed
test: tune grep
1 parent da14aa7 commit aede3ca

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/scripts/check_team_membership.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ set -x
55
USER=$1
66
TOKEN=$2
77

8-
echo "$(gh api \
9-
-H "Accept: application/vnd.github+json" \
10-
-H "X-GitHub-Api-Version: 2022-11-28" \
11-
/orgs/immutable/teams)"
12-
138
echo "$(gh api \
149
-H "Accept: application/vnd.github+json" \
1510
-H "X-GitHub-Api-Version: 2022-11-28" \
@@ -22,7 +17,7 @@ response=$(gh api \
2217

2318
echo "$response"
2419

25-
if echo "$response" | grep -q '"state": "active"'; then
20+
if echo "$response" | grep -q '"state":"active"'; then
2621
echo "true"
2722
else
2823
echo "false"

0 commit comments

Comments
 (0)