From 99a34776638759c5c1ec7b7904b657507616e237 Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:32:15 -0500 Subject: [PATCH] Specify a default shell for run steps This should help debugging as any interpolated values will now appear in the log. --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 875f52d..f068ed7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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