def clone_action_files(source_action_db, dest_action_db, dest_pack_base_path):
    """
    Prepares the path for entry point and metadata files for source and destination.
    Clones the content from source action files to destination action files.
    """

    source_pack = source_action_db["pack"]
    source_entry_point = source_action_db["entry_point"]
    source_metadata_file = source_action_db["metadata_file"]
    source_pack_base_path = get_pack_base_path(pack_name=source_pack)
    source_metadata_file_path = os.path.join(
        source_pack_base_path, source_metadata_file
    )
    dest_metadata_file_name = dest_action_db["metadata_file"]
    dest_metadata_file_path = os.path.join(dest_pack_base_path, dest_metadata_file_name)

    # creating actions directory in destination pack if doesn't exist
    ac_dir_path = os.path.join(dest_pack_base_path, "actions")
    if not os.path.isdir(ac_dir_path):
        os.mkdir(path=ac_dir_path)
    _clone_content_to_destination_file(
        source_file=source_metadata_file_path, destination_file=dest_metadata_file_path
    )

    dest_entry_point = dest_action_db["entry_point"]
    dest_runner_type = dest_action_db["runner_type"]["name"]

    if dest_entry_point:
        if dest_runner_type in ["orquesta", "action-chain"]:
            # creating workflows directory if doesn't exist
            wf_dir_path = os.path.join(dest_pack_base_path, "actions", "workflows")
            if not os.path.isdir(wf_dir_path):
                os.mkdir(path=wf_dir_path)
        source_entry_point_file_path = os.path.join(
            source_pack_base_path, "actions", source_entry_point
        )
        dest_entrypoint_file_path = os.path.join(
            dest_pack_base_path, "actions", dest_entry_point
        )
        _clone_content_to_destination_file(
            source_file=source_entry_point_file_path,
            destination_file=dest_entrypoint_file_path,
        )

    with open(dest_metadata_file_path) as df:
        doc = yaml.load(df, Loader=yaml.FullLoader)

    doc["name"] = dest_action_db["name"]
    if "pack" in doc:
        doc["pack"] = dest_action_db["pack"]
    doc["entry_point"] = dest_entry_point

    with open(dest_metadata_file_path, "w") as df:
        yaml.dump(doc, df, default_flow_style=False, sort_keys=False)

    Prepares the path for entry point and metadata files for source and destination.
    Clones the content from source action files to destination action files.
    
st2common/st2common/services/packs.py