Skip to content

Commit

Permalink
Set the default shell for all run steps in the build workflow
Browse files Browse the repository at this point in the history
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 print any commands that are
run which should make debugging/troubleshooting more straightforward.
  • Loading branch information
mcdonnnj committed Sep 21, 2023
1 parent c0eed09 commit f337abe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
repository_dispatch:
types: [apb]

# Set a default shell for any run steps. The `-Eueo pipefail` sets nounset, errexit,
# and pipefail. The `-x` will print all commands as they are run. Please see the GitHub
# Actions documentation for more information:
# https://docs.github.com/en/actions/using-jobs/setting-default-values-for-jobs
defaults:
run:
shell: bash -Eueo pipefail -x {0}

env:
CURL_CACHE_DIR: ~/.cache/curl
PIP_CACHE_DIR: ~/.cache/pip
Expand Down

0 comments on commit f337abe

Please sign in to comment.