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