act/vpy
Some checks failed
/ alpine (push) Failing after 42s
/ debian (push) Failing after 1m18s
/ ubuntu (push) Failing after 1m23s
/ arch (push) Failing after 1m30s
/ alma (push) Blocked by required conditions
/ rocky (push) Blocked by required conditions
/ opensuse (push) Has been cancelled
/ fedora (push) Has been cancelled

This commit is contained in:
Marc Beninca 2024-10-15 21:49:29 +02:00
parent 588bf5c6c4
commit 44423ef2ee
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 16 additions and 19 deletions

View file

@ -52,17 +52,22 @@ def install_actions(path: Path) -> None:
""" """
step("Install actions") step("Install actions")
name = "action.yaml" name = "action.yaml"
source = path.parent / "actions" root = project.root / "act"
target = project.root / "act" vpy = Path(env.SPCD_PYTHON_VENV_BINARIES) / "python"
for action in [ action = "synchronize"
"synchronize",
]:
log.info(action) log.info(action)
r = source / action / name directory = root / action
w = target / action fs.make_directory(directory)
fs.make_directory(w) fs.write(directory / name, f"""\
w = w / name inputs:
fs.write(w, fs.read_file_text(r)) source:
default: out
required: false
runs:
using: composite
steps:
- run: "{vpy}" -m spcd synchronize
""")
def install_commands(path: Path) -> None: def install_commands(path: Path) -> None:

View file

@ -1,8 +0,0 @@
inputs:
source:
default: out
required: false
runs:
using: composite
steps:
- run: python3 -m "spcd" "synchronize"