Hello, workflow (60 seconds)
Create a workflow with one Bash block that publishes ok: true. Time: 5 minutes. Needs: Bash on PATH.
Steps
Open Workflows (Cmd/Ctrl+Shift+G) and choose New workflow.
Under Settings (next to Editor), name it
Hello workflow.Add a Code block. New Code blocks start as Bash.
In Properties → Code, set the snippet to:
Open Properties → Schema and add a property named
okwith typeboolean.Click Save, then Run.
The same workflow as YAML
Open the YAML tab. You should see something like this. The block ID is generated, so yours may differ.
You can also paste YAML straight into the YAML tab and switch back to Editor. The rest of the course often gives you YAML to paste, because it’s the quickest way to get to a known starting point.
Check your run
- The card shows Running, then Done.
- Properties → Output shows
ok: true, together withexit: 0andstatus: ok. - Your terminal stayed usable throughout, because workflows don’t block the prompt.
Why the last line matters
Because the block declares an output (ok), the last non-empty line of stdout must be one JSON object, and that object must include ok as a boolean. Stage 2 covers this rule in detail.
Change the snippet to print Starting… before the JSON line. Does the block still pass? Then try printing Done after the JSON.
Reference: Build a workflow → In 60 seconds