jobs.<job_id>.steps[*].run

1 minute read

Use jobs.<job_id>.steps[*].run to run command-line programs using the shell of the operating system.

run specifications:

  • By default, non-login shells are used to run commands. This affects the scripts run as the environment starts, including scripts that affect both path and environment variables.

  • The run command is executed into the container provided by the corresponding uses: statement for this step.

  • The step name defaults to text specified in the run command if a name is not set.

You can choose a different shell and customize the shell used to run commands, and you can use a run step to run a script.

If a step contains multi-line commands, each line runs in the same shell.