From 1d71025587bc23fcb2ad63a8ce788e09af47c0e3 Mon Sep 17 00:00:00 2001 From: Rushi Vishavadia Date: Mon, 9 Sep 2024 14:52:33 +0530 Subject: [PATCH] Update eslint.yml --- .github/workflows/eslint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index d5a387a63..8ef781cb8 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -35,8 +35,9 @@ jobs: organization: xola - name: Stop workflow if user is no member + if: ${{ !(contains(steps.actorTeams.outputs.teams, 'Engineering') || contains(steps.actorTeams.outputs.teams.teams, 'X2 Consultants')) }} run: | - echo "Debugging" + echo "User is not in Engineering or X2 Consultants team" echo ${{steps.teamAffiliation.outputs.teams}} exit 1