Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ do:
run:
shell:
command: 'echo "Hello, ${ .user.name }"'
directory: /tmp

- runWorkflow:
run:
Expand Down Expand Up @@ -1027,6 +1028,7 @@ Enables the execution of shell commands within a workflow, enabling workflows to
| command | `string` | `yes` | The shell command to run |
| stdin | `string` | `no` | A runtime expression, if any, to the shell command as standard input (stdin).|
| arguments | `string[]` | `no` | A list of the arguments, if any, of the shell command to run |
| directory | `string` | `no` | The working directory, if any, in which to run the shell command. |
| environment | `map` | `no` | A key/value mapping of the environment variables, if any, to use when running the configured process |

###### Examples
Expand Down Expand Up @@ -1054,6 +1056,7 @@ do:
arguments:
- Foo
- Bar
directory: /tmp
```

##### Workflow Process
Expand Down
5 changes: 3 additions & 2 deletions examples/run-shell-stdin-and-arguments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ do:
echo "STDIN was: $input"
echo "ARGS are $1 $2"
arguments:
- Foo
- Bar
- Foo
- Bar
directory: /tmp
4 changes: 4 additions & 0 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,10 @@ $defs:
description: A list of the arguments, if any, of the shell command to run.
items:
type: string
directory:
type: string
title: ShellDirectory
description: The working directory, if any, in which to run the shell command.
environment:
type: object
title: ShellEnvironment
Expand Down
Loading