Skip to content

Commit

Permalink
Specify a default shell for run steps
Browse files Browse the repository at this point in the history
This should help debugging as any interpolated values will now appear
in the log.
  • Loading branch information
mcdonnnj committed Jan 29, 2024
1 parent b999011 commit 99a3477
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 @@ -24,6 +24,14 @@ on:
required: true
default: "dispatch"

# Set a default shell for any run steps. The `-Eueo pipefail` sets errtrace,
# 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:
BUILDX_CACHE_DIR: ~/.cache/buildx
CURL_CACHE_DIR: ~/.cache/curl
Expand Down

0 comments on commit 99a3477

Please sign in to comment.