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:
- The step
jobs.<job_id>.steps[*].run.working-directory
. Seejobs.<job_id>.steps[*].working-directory
. - The job
jobs.<job_id>.defaults.run.working-directory
. Seejobs.<job_id>.defaults.run.working-directory
. - The workflow
defaults.run.working-directory
. Seedefaults.run.working-directory
.
{% data reusables.actions.defaults-override %}