copy_file

Copies a file to a different path in the repository, retaining the original file at its original path.

Arguments

NameTypeDescriptionRequired

source_path

string

The relative path to the file (including filename) that needs to be copied to a new location.

destination_path

string

The relative path where the source file should be copied to. This path/file does not need to exist yet.

Returns

TypeDescription

string

The new path to the file that was copied to the new location.

Example

- name: copy_file
  arguments:
    source_path: <relative/path/to/file>
    destination_path: <relative/path/to/directory>
  returns: <new-path-to-file>

Last updated