From bfd9ce0b7db6860ec7cc6bdf24e96e2a43707a9c Mon Sep 17 00:00:00 2001 From: yutao Date: Mon, 22 Apr 2024 22:30:19 +0800 Subject: [PATCH] chore: should not trigger lark noti if sender is a project member --- .github/workflows/issue-pr-trigger.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-pr-trigger.yml b/.github/workflows/issue-pr-trigger.yml index 1eb99838c122..2ae151b8d5de 100644 --- a/.github/workflows/issue-pr-trigger.yml +++ b/.github/workflows/issue-pr-trigger.yml @@ -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"