From d4167b12549873ae56d98f8c138b7651691f7614 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti Date: Tue, 10 Nov 2026 13:27:31 +0100 Subject: [PATCH] [Fix #1215] Updating Javscript example Signed-off-by: Francisco Javier Tirado Sarti --- examples/run-script-with-stdin-and-arguments.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/run-script-with-stdin-and-arguments.yaml b/examples/run-script-with-stdin-and-arguments.yaml index fc318c8a..9fd2e72b 100644 --- a/examples/run-script-with-stdin-and-arguments.yaml +++ b/examples/run-script-with-stdin-and-arguments.yaml @@ -14,9 +14,8 @@ do: arguments: arg: hello code: | - import { readFileSync } from 'node:fs'; - const stdin = readFileSync(process.stdin.fd, 'utf8'); - console.log('stdin > ', stdin) // Output: stdin > Hello Workflow + + console.log('stdin > ', readLine()) // Output: stdin > Hello Workflow console.log('arg > ', arg) // Output: arg > hello const foo = process.env.foo; console.log('env > ', foo) // Output: env > bar