Skip to content

Commit f598b44

Browse files
committed
Check that user exists before adding
1 parent fb64baf commit f598b44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/add_member.yml

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
python -c "print('USERNAME='+'${{ github.event.issue.title }}'.split(' - ')[1])" >> $GITHUB_ENV
3737

3838
- name: Check whether username exists
39+
env:
40+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941
run: |
4042
gh api /users/${{ env.USERNAME }} > /dev/null
4143
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)