Skip to content

Commit 01c9e11

Browse files
authored
Merge pull request #162 from cisagov/improvement/set_default_for_run_steps
Set the default `shell` for all `run` steps in the `build` workflow
2 parents 57bef4a + 242921b commit 01c9e11

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ on:
1111
types:
1212
- apb
1313

14+
# Set a default shell for any run steps. The `-Eueo pipefail` sets errtrace,
15+
# nounset, errexit, and pipefail. The `-x` will print all commands as they are
16+
# run. Please see the GitHub Actions documentation for more information:
17+
# https://docs.github.com/en/actions/using-jobs/setting-default-values-for-jobs
18+
defaults:
19+
run:
20+
shell: bash -Eueo pipefail -x {0}
21+
1422
env:
1523
CURL_CACHE_DIR: ~/.cache/curl
1624
PIP_CACHE_DIR: ~/.cache/pip

0 commit comments

Comments
 (0)