From 7bf21aeff095deb0d97138081af20b262a31d2c2 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Wed, 22 Jan 2025 19:45:39 -0300 Subject: [PATCH] fix:issue user var --- .github/workflows/add_member.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add_member.yml b/.github/workflows/add_member.yml index ef17a08..1bb6cb0 100644 --- a/.github/workflows/add_member.yml +++ b/.github/workflows/add_member.yml @@ -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 @@ -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