Skip to content

Commit

Permalink
Update build-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
svrnm authored Dec 3, 2024
1 parent 5a21be4 commit ebcc12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
run: |
USERNAME="${{ inputs.username }}"
ORG="${{ inputs.org }}"
STATUS=$(gh api "orgs/$ORG/members/$USERNAME" -q '.login' || true)
STATUS=$(gh api "orgs/$ORG/members/$USERNAME" --silent && echo "true" || echo "false")
if [[ "$STATUS" == "$USERNAME" ]]; then
if [[ "$STATUS" == "true" ]]; then
echo "MEMBER_FOUND=true" >> $GITHUB_ENV
else
echo "MEMBER_FOUND=false" >> $GITHUB_ENV
Expand Down

0 comments on commit ebcc12c

Please sign in to comment.