From a2794d9d5991c3a87c98dc4ccdc85947aa83d93e Mon Sep 17 00:00:00 2001 From: Rushi Vishavadia Date: Mon, 9 Sep 2024 14:58:00 +0530 Subject: [PATCH] Update eslint.yml --- .github/workflows/eslint.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 54d5a1fea..0a3ba78e1 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -28,17 +28,17 @@ jobs: steps: - name: Check user for team affiliation uses: tspascoal/get-user-teams-membership@v2 - id: teamAffiliation + id: checkUserMember with: GITHUB_TOKEN: ${{ secrets.TEMP_ORG_READ_TOKEN }} username: ${{ github.actor }} organization: xola + team: 'Engineering,X2 Consultants' - name: Stop workflow if user is no member - if: ${{ !(contains(steps.teamAffiliation.outputs.teams, 'Engineering_') || contains(steps.teamAffiliation.outputs.teams.teams, 'X2 Consultants_')) }} + if: ${{ steps.checkUserMember.outputs.isTeamMember == 'false' }} run: | - echo "Hey U${{ github.actor }} you are not in a whitelisted team" - echo ${{steps.teamAffiliation.outputs.teams}} + echo "Hey ${{ github.actor }} you are not in a whitelisted team" exit 1 - uses: actions/checkout@v3