forked from aws-samples/serverless-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 971 Bytes
/
export-to-serverlessland.yml
File metadata and controls
32 lines (30 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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 == 'singledigit') || (github.actor == 'boyney123') || (github.actor == 'mavi888') || (github.actor == 'julianwood') }}
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 }}