This commit is contained in:
Marc Beninca 2024-10-20 18:54:47 +02:00
parent 886fcf3673
commit c77674afa4
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -60,26 +60,25 @@ def install_actions() -> None:
fs.make_directory(directory)
match action:
case "action":
yaml = """\
inputs:
inputs = """\
arg-1:
required: true
arg_2:
required: true
"""
case "synchronize":
yaml = """\
inputs:
inputs = """\
source:
default: out
required: false
"""
yaml = f"""{yaml}\
yaml = f"""\
runs:
using: composite
steps:
- run: {vpy} -m spcd {action}
"""
inputs:
{inputs}"""
fs.write(directory / name, yaml)
cat(directory / name)