From 3e494bc354bf6fa01bd75a6d47119d64c14c805e Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 14 Oct 2024 22:43:07 +0200 Subject: [PATCH] act --- spcd/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spcd/__init__.py b/spcd/__init__.py index 4b9b6a5..41b6927 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -44,6 +44,16 @@ def clone_project_branch() -> None: ) +def install_actions(path: Path) -> None: + """Make actions usable in workflows. + + :param path: entry point file + :type path: Path + """ + step("Install actions") + Path("act").symlink_to(path.parent / "actions") + + def install_commands(path: Path) -> None: """Make commands callable in the operating system. @@ -113,6 +123,7 @@ def main(main_file: Path) -> None: list_environment_variables() clone_project_branch() set_ssh() + install_actions(main_file) install_commands(main_file) install_python_packages() else: