inputs
This commit is contained in:
parent
886fcf3673
commit
c77674afa4
1 changed files with 5 additions and 6 deletions
|
@ -60,26 +60,25 @@ def install_actions() -> None:
|
||||||
fs.make_directory(directory)
|
fs.make_directory(directory)
|
||||||
match action:
|
match action:
|
||||||
case "action":
|
case "action":
|
||||||
yaml = """\
|
inputs = """\
|
||||||
inputs:
|
|
||||||
arg-1:
|
arg-1:
|
||||||
required: true
|
required: true
|
||||||
arg_2:
|
arg_2:
|
||||||
required: true
|
required: true
|
||||||
"""
|
"""
|
||||||
case "synchronize":
|
case "synchronize":
|
||||||
yaml = """\
|
inputs = """\
|
||||||
inputs:
|
|
||||||
source:
|
source:
|
||||||
default: out
|
default: out
|
||||||
required: false
|
required: false
|
||||||
"""
|
"""
|
||||||
yaml = f"""{yaml}\
|
yaml = f"""\
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- run: {vpy} -m spcd {action}
|
- run: {vpy} -m spcd {action}
|
||||||
"""
|
inputs:
|
||||||
|
{inputs}"""
|
||||||
fs.write(directory / name, yaml)
|
fs.write(directory / name, yaml)
|
||||||
cat(directory / name)
|
cat(directory / name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue