Skip to content

Update export-to-serverlessland-team.yml #10

Update export-to-serverlessland-team.yml

Update export-to-serverlessland-team.yml #10

# Manual trigger that will Copy pattern to SLand
name: Manual Copy to SLand-team-test
on:
workflow_dispatch:
inputs:
fileName:
description: "new pattern filename"
required: true
dirName:
description: "new pattern dir"
required: true
jobs:
copy:
runs-on: ubuntu-latest

Check failure on line 15 in .github/workflows/export-to-serverlessland-team.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/export-to-serverlessland-team.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
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: Copycat
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 }}