Skip to content

Commit 242921b

Browse files
committed
Set the default shell for all run steps in the build workflow
This sets the default shell for any run steps in the build workflow to mirror our standard shellscript writing practices. In addition to enabling our standard options it will also enable errtrace and print any commands that are run which should make debugging/troubleshooting more straightforward.
1 parent c0eed09 commit 242921b

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
@@ -7,6 +7,14 @@ on:
77
repository_dispatch:
88
types: [apb]
99

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

0 commit comments

Comments
 (0)