Skip to content

Commit

Permalink
[ci skip] fix bug in auto-approve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arstanaly committed Nov 30, 2023
1 parent 35f0d9f commit 4ba6fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: check requester
run: |
# fail job if the requester is not a member of the organization
curl -s -H "Authorization: token ${{ secrets.READ_KOSLI_GH_ORG_MEMBERS }}" \
https://api.github.com/orgs/kosli-dev/members \
| jq -r ".[].login" \
| grep -w "${{ github.event.pull_request.user.login }}"
result=$?
echo $result
if [[ $result -eq 0 ]]; then
echo "User ${{ github.event.pull_request.user.login }} is a member of kosli-dev"
Expand Down

0 comments on commit 4ba6fde

Please sign in to comment.