Skip to content

Commit 58fd652

Browse files
authored
Update survey-on-merged-pr.yml
remove duplicate section
1 parent a0dcb0e commit 58fd652

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

.github/workflows/survey-on-merged-pr.yml

-15
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: github.event.pull_request.merged == true
1111
steps:
12-
- name: Check if PR author is a member of the org
13-
id: check-membership
14-
run: |
15-
PR_AUTHOR=$(jq -r '.pull_request.user.login' "$GITHUB_EVENT_PATH")
16-
ORG_NAME="${{ github.repository_owner }}"
17-
ORG_MEMBERS=$(gh api "orgs/$ORG_NAME/members" --jq '.[].login')
18-
echo "PR_AUTHOR=${PR_AUTHOR}" >> $GITHUB_ENV
19-
echo "MEMBER_FOUND=false" >> $GITHUB_ENV
20-
for MEMBER in $ORG_MEMBERS; do
21-
if [[ "$PR_AUTHOR" == "$MEMBER" ]]; then
22-
echo "MEMBER_FOUND=true" >> $GITHUB_ENV
23-
break
24-
fi
25-
done
26-
2712
- name: Check if user is a member of the org
2813
id: check-membership
2914
run: |

0 commit comments

Comments
 (0)