From 192692ec8a980dd772d960e931230f9bc5c23aca Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 15 Oct 2024 08:34:48 +0200 Subject: [PATCH] read,write --- spcd/__init__.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/spcd/__init__.py b/spcd/__init__.py index f6a73aa..c2bf4b0 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -51,12 +51,18 @@ def install_actions(path: Path) -> None: :type path: Path """ step("Install actions") - source = project.root / "act" - target = path.parent / "actions" - log.info(source) - log.info(target) - source.symlink_to(target) - run("ls", "-l") + name = "action.yaml" + source = path.parent / "actions" + target = project.root / "act" + for action in [ + "synchronize", + ]: + log.info(action) + r = source / action / name + w = target / action + fs.make_directory(w) + w = w / name + fs.write(w, fs.read_file_text(r)) def install_commands(path: Path) -> None: