We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0dcb0e commit 58fd652Copy full SHA for 58fd652
.github/workflows/survey-on-merged-pr.yml
@@ -9,21 +9,6 @@ jobs:
9
runs-on: ubuntu-latest
10
if: github.event.pull_request.merged == true
11
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
-
27
- name: Check if user is a member of the org
28
id: check-membership
29
run: |
0 commit comments