Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 916 Bytes

setting-default-values-for-jobs-defaults-run-working-directory.md

File metadata and controls

10 lines (7 loc) · 916 Bytes

Use working-directory to define the working directory for the shell for a step. {% data reusables.actions.reusable-keyword %}

{% data reusables.actions.working-directory-must-exist %}

The working-directory for a step is taken from the first defined in this list:

  1. The step jobs.<job_id>.steps[*].run.working-directory. See jobs.<job_id>.steps[*].working-directory.
  2. The job jobs.<job_id>.defaults.run.working-directory. See jobs.<job_id>.defaults.run.working-directory.
  3. The workflow defaults.run.working-directory. See defaults.run.working-directory.

{% data reusables.actions.defaults-override %}