From 56c9b6862d320e92a37bf52f5637e3143cbc35fc Mon Sep 17 00:00:00 2001 From: Julian Wood Date: Mon, 22 Jan 2024 11:15:02 +0000 Subject: [PATCH] Update export-to-serverlessland-team.yml --- .../export-to-serverlessland-team.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/export-to-serverlessland-team.yml b/.github/workflows/export-to-serverlessland-team.yml index 1e6f91897..bd8103b51 100644 --- a/.github/workflows/export-to-serverlessland-team.yml +++ b/.github/workflows/export-to-serverlessland-team.yml @@ -10,24 +10,21 @@ on: dirName: description: "new pattern dir" required: true - jobs: copy: runs-on: ubuntu-latest - if: ${{ (github.actor == 'bls20aws') || (github.actor == 'julianwood') }} + uses: tspascoal/get-user-teams-membership@v2 + id: checkUserMember + with: + username: ${{ github.actor }} + team: 'aws-serverless-da' + GITHUB_TOKEN: ${{ secrets.GET_USER_TEAMS_MEMBERSHIP }} + if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }} env: NODE_ENV: dev fileName: ${{ inputs.fileName }} steps: - - name: Check if user is a member of the team - uses: tspascoal/get-user-teams-membership@v2 - id: checkUserMember - with: - username: ${{ github.actor }} - team: 'aws-serverless-da' - GITHUB_TOKEN: ${{ secrets.GET_USER_TEAMS_MEMBERSHIP }} - - name: Check if user is a member of the team - if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }} + - name: Copycat uses: andstor/copycat-action@v3 with: personal_token: ${{ secrets.patterns_pat }}