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")
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))
root = project.root / "act"
vpy = Path(env.SPCD_PYTHON_VENV_BINARIES) / "python"
action = "synchronize"
log.info(action)
directory = root / action
fs.make_directory(directory)
fs.write(directory / name, f"""\
inputs:
source:
default: out
required: false
runs:
using: composite
steps:
- run: "{vpy}" -m spcd synchronize
""")
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"