diff --git a/.github/workflows/label-community-pr.yml b/.github/workflows/label-community-pr.yml index 39f543ebc902..6b47494a170c 100644 --- a/.github/workflows/label-community-pr.yml +++ b/.github/workflows/label-community-pr.yml @@ -17,9 +17,8 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set +e - gh api orgs/Kong/members --paginate -q '.[].login' + gh api orgs/Kong/members --paginate -q '.[].login' | grep -q '^${{ github.event.pull_request.user.login }}$' echo "exitcode=$?" >> $GITHUB_OUTPUT - cat $GITHUB_OUTPUT - name: Add Label if Author is not a member if: steps.check_membership.outputs.exitcode == '1' uses: christianvuerings/add-labels@v1