How-to GuidesAuthor Workflows
Run Shell Commands in a Workflow
Add a run step that executes shell commands on a runner.
Use a run step to execute a shell command on a runner. This guide prints a message from a manually started workflow. Replace the example with the command your workflow needs.
Add the commands
# yaml-language-server: $schema=https://www.shipfox.io/docs/workflow.schema.json
name: Run shell commands
runner: shipfox
triggers:
manual:
source: manual
jobs:
command:
steps:
- run: echo "Single-line command"
- run: |
echo "First line of a multiline command"
echo "Second line of a multiline command"Verify the command
Start the workflow
Select Run, then open the new run.
Inspect the output
Open both run steps. Confirm that their logs contain the three messages from the example. After adapting the example, confirm that each command produced its expected result.
Use Inspect logs when output is missing. See Run step fields for command options. See Environment variables for workflow, job, and step order.
Was this page helpful?
Edit this page on GitHub