DocsWorkflowsComponentsStoragestorage:local:file:copy

storage:local:file:copy

Copies a file from source to destination, preserving file permissions

Options

NameTypeDescription
sourcestringPath to the source file, resolved inside the host's file root
deststringPath to the destination file, resolved inside the host's file root

Outputs

NameTypeDescription
sourcestringResolved absolute path of the source file
deststringResolved absolute path of the destination file

Example

name: Copy a template into place
actions:
  - name: copied
    component: storage:local:file:copy
    vars:
      source: templates/base.md
      dest: out/draft.md