From 0702aef73a8ec3d78cc9c128e7d4fc3ef4299755 Mon Sep 17 00:00:00 2001 From: Charles d'Avernas Date: Wed, 7 Aug 2024 15:27:40 +0200 Subject: [PATCH] Added a new example for running script with arguments Signed-off-by: Charles d'Avernas --- examples/run-script-with-arguments.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/run-script-with-arguments.yaml diff --git a/examples/run-script-with-arguments.yaml b/examples/run-script-with-arguments.yaml new file mode 100644 index 00000000..b8ce89fe --- /dev/null +++ b/examples/run-script-with-arguments.yaml @@ -0,0 +1,14 @@ +document: + dsl: 1.0.0-alpha1 + namespace: samples + name: run-script-with-arguments + version: 0.1.0 +do: + - log: + run: + script: + language: javascript + arguments: + message: ${ .message } + code: > + console.log(message) \ No newline at end of file