Skip to content

Commit

Permalink
Merge branch 'actions-debug' into debug-XS-30
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi authored Sep 9, 2024
2 parents 88c2de1 + a2794d9 commit 9a9499a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a9499a

Please sign in to comment.