Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
julianwood authored Jan 19, 2024
1 parent 5ddbb62 commit 0e73e6a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/export-to-serverlessland-team.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Manual trigger that will Copy pattern to SLand
name: Manual Copy to SLand

on:
workflow_dispatch:
inputs:
fileName:
description: "new pattern filename"
required: true
dirName:
description: "new pattern dir"
required: true

jobs:
copy:
runs-on: ubuntu-latest
if: ${{ (github.actor == 'bls20aws') || (github.actor == 'julianwood') }}
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.GITHUB_TOKEN }}
- name: Copycat
if: ${{ steps.teamAffiliation.outputs.isTeamMember == 'true' }}
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.patterns_pat }}
dst_path: /submissions/patterns/
dst_owner: bls20AWS
dst_repo_name: serverless-land
dst_branch: master
src_branch: main
file_filter: "*.json"
src_path: /${{ inputs.dirName }}/${{ inputs.fileName }}

0 comments on commit 0e73e6a

Please sign in to comment.