Skip to content

Commit

Permalink
fix:issue user var
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Jan 22, 2025
1 parent bb9f41d commit 7bf21ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/add_member.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Validate add user request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_USER: ${{ github.event.issue.user.login }}
run: |
# Check whether the user exists
set +e
Expand All @@ -48,7 +49,6 @@ jobs:
fi
# Check if the username is in the title is the same as the user who opened the issue
python -c "print('ISSUE_USER='+'${{ github.event.issue.user.login }}')" >> $GITHUB_ENV
if [ "${{ env.USERNAME }}" != "${{ env.ISSUE_USER }}" ]; then
gh issue comment ${{ env.ISSUE_NUMBER }} --body "If you want to add a different user, please create a PR for it"
exit 1
Expand Down

0 comments on commit 7bf21ae

Please sign in to comment.