1
0
mirror of synced 2026-01-05 21:04:17 -05:00

adding note about sh and bash

This commit is contained in:
Josh Johanning
2022-08-19 15:18:37 -05:00
committed by GitHub
parent 487dc14a9f
commit 47387eb9e6

View File

@@ -2,6 +2,8 @@ Use `jobs.<job_id>.container` to create a container to run any steps in a job th
If you do not set a `container`, all steps will run directly on the host specified by `runs-on` unless a step refers to an action configured to run in a container.
Note: the default shell for `run` steps inside a container is `sh` instead of `bash`. This can be overridden with [`jobs.<job_id>.defaults.run`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun) or [`jobs.<job_id>.steps[*].shell`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell).
### Example: Running a job within a container
```yaml{:copy}