Skip to content

Commit ebcc12c

Browse files
authored
Update build-dev.yml
1 parent 5a21be4 commit ebcc12c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-dev.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
run: |
2626
USERNAME="${{ inputs.username }}"
2727
ORG="${{ inputs.org }}"
28-
STATUS=$(gh api "orgs/$ORG/members/$USERNAME" -q '.login' || true)
28+
STATUS=$(gh api "orgs/$ORG/members/$USERNAME" --silent && echo "true" || echo "false")
2929
30-
if [[ "$STATUS" == "$USERNAME" ]]; then
30+
if [[ "$STATUS" == "true" ]]; then
3131
echo "MEMBER_FOUND=true" >> $GITHUB_ENV
3232
else
3333
echo "MEMBER_FOUND=false" >> $GITHUB_ENV

0 commit comments

Comments
 (0)