Skip to content

Commit

Permalink
chore(ci): wip
Browse files Browse the repository at this point in the history
  • Loading branch information
krisantrobus committed Oct 14, 2024
1 parent d84104d commit 8c9e35b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/on_pull_request_open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js 20.5
uses: actions/setup-node@v4
with:
node-version: 20.5.x

- name: Assign Author
uses: technote-space/assign-author@v1

Expand All @@ -22,23 +27,14 @@ jobs:
with:
GITHUB_TOKEN: "${{ secrets.PAT_GH_READ_ORG }}"
username: "${{ github.actor }}"
# List of all teams for dsys
team: "Design Systems PD"

# ,design-systems,Design Systems Eng,Design Systems Eng Leads

- name: Debug in group
run: echo "${{ github.actor }} is team member ${{ steps.teamAffiliation.outputs.isTeamMember }}"

- name: Check user for team affiliation
uses: tspascoal/get-user-teams-membership@v2
id: teamAffiliationList
with:
GITHUB_TOKEN: "${{ secrets.PAT_GH_READ_ORG }}"
username: "${{ github.actor }}"

- name: Debug groups
run: echo "${{ steps.teamAffiliationList.outputs.teams }}"

- name: Auto contribution labeller
if: ${{ steps.teamAffiliation.outputs.isTeamMember == 'false' }}
uses: actions/labeler@v4
Expand Down

0 comments on commit 8c9e35b

Please sign in to comment.