From 24439d61ee17494f4717e30e00839845a0349a7a Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 14 Aug 2024 23:56:54 +0100 Subject: [PATCH] fix(build): use pipefail to fail builds --- .github/workflows/dev-build.yml | 2 ++ .github/workflows/prod-build.yml | 1 + .github/workflows/stage-build.yml | 1 + .github/workflows/test-build.yml | 1 + 4 files changed, 5 insertions(+) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 26d3f2b0a474..d3565a012f3c 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -131,6 +131,8 @@ jobs: REACT_APP_DISABLE_AUTH: true run: | + set -eo pipefail + # Info about which CONTENT_* environment variables were set and to what. echo "CONTENT_ROOT=$CONTENT_ROOT" echo "CONTENT_TRANSLATED_ROOT=$CONTENT_TRANSLATED_ROOT" diff --git a/.github/workflows/prod-build.yml b/.github/workflows/prod-build.yml index 870474bc4b39..da267b3640f3 100644 --- a/.github/workflows/prod-build.yml +++ b/.github/workflows/prod-build.yml @@ -255,6 +255,7 @@ jobs: REACT_APP_AI_FEEDBACK_GITHUB_REPO: mdn/ai-feedback run: | + set -eo pipefail # Info about which CONTENT_* environment variables were set and to what. echo "CONTENT_ROOT=$CONTENT_ROOT" diff --git a/.github/workflows/stage-build.yml b/.github/workflows/stage-build.yml index 2845fa8c7142..5c1a301b94ab 100644 --- a/.github/workflows/stage-build.yml +++ b/.github/workflows/stage-build.yml @@ -269,6 +269,7 @@ jobs: SENTRY_RELEASE: ${{ github.sha }} run: | + set -eo pipefail # Info about which CONTENT_* environment variables were set and to what. echo "CONTENT_ROOT=$CONTENT_ROOT" diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 4f8c96e0af0e..bfa70d1d960d 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -160,6 +160,7 @@ jobs: # Observatory REACT_APP_OBSERVATORY_API_URL: https://observatory-api.mdn.allizom.net run: | + set -eo pipefail # Info about which CONTENT_* environment variables were set and to what. echo "CONTENT_ROOT=$CONTENT_ROOT"