Skip to content

Commit

Permalink
chore: should not trigger lark noti if sender is a project member
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao committed Apr 22, 2024
1 parent 17ac5b4 commit bfd9ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/issue-pr-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
SENDER=${{ github.event.sender.login }}
RESPONSE=$(gh api -i -H "Accept: application/vnd.github.v3+json" /orgs/$REPO_OWNER/members/$SENDER 2>&1)
RESPONSE=$(gh api /orgs/$REPO_OWNER/members/$SENDER --include 2>&1)
STATUS_CODE=$(echo "$RESPONSE" | grep HTTP | tail -n 1 | awk '{print $2}')
STATUS_CODE=$(echo "$RESPONSE" | grep HTTP | head -n 1 | awk '{print $2}')
if [[ "$STATUS_CODE" == "204" ]]; then
echo "::set-output name=skip::true"
Expand Down

0 comments on commit bfd9ce0

Please sign in to comment.