Skip to content

Commit

Permalink
Update export-to-serverlessland-team.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
julianwood authored Jan 22, 2024
1 parent 0b11573 commit 56c9b68
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/export-to-serverlessland-team.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 56c9b68

Please sign in to comment.