rename_file

Renames a file within the project's repository to a new name.

Arguments

Name
Type
Description
Required

path_to_file

string

The path to the file to be renamed, including the file name.

new_file_name

string

The new name for the file, including its path.

Returns

Type
Description

string

The new path to the renamed file.

Example

- name: rename_file
  arguments:
    path_to_file: <path/to/original/file>
    new_file_name: <new/path/to/file>
  returns: <new/path/to/file>

Last updated