Manual Copy to SLand #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' | |
env: | |
NODE_ENV: dev | |
fileName: ${{ inputs.fileName }} | |
steps: | |
- name: Copycat | |
uses: andstor/copycat-action@v3 | |
with: | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
dst_path: /content/patterns/ | |
dst_owner: bls20aws | |
dst_repo_name: serverless-land | |
dst_branch: master | |
src_branch: master | |
file_filter: "*.json" | |
src_path: ${{ inputs.dirName }}/${{ inputs.fileName }} |