Skip to content

Commit 570efab

Browse files
authored
fix(build): use pipefail to fail builds (#11637)
1 parent 30c82f0 commit 570efab

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

Diff for: .github/workflows/dev-build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ jobs:
131131
REACT_APP_DISABLE_AUTH: true
132132

133133
run: |
134+
set -eo pipefail
135+
134136
# Info about which CONTENT_* environment variables were set and to what.
135137
echo "CONTENT_ROOT=$CONTENT_ROOT"
136138
echo "CONTENT_TRANSLATED_ROOT=$CONTENT_TRANSLATED_ROOT"

Diff for: .github/workflows/prod-build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ jobs:
255255
REACT_APP_AI_FEEDBACK_GITHUB_REPO: mdn/ai-feedback
256256

257257
run: |
258+
set -eo pipefail
258259
259260
# Info about which CONTENT_* environment variables were set and to what.
260261
echo "CONTENT_ROOT=$CONTENT_ROOT"

Diff for: .github/workflows/stage-build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ jobs:
269269
SENTRY_RELEASE: ${{ github.sha }}
270270

271271
run: |
272+
set -eo pipefail
272273
273274
# Info about which CONTENT_* environment variables were set and to what.
274275
echo "CONTENT_ROOT=$CONTENT_ROOT"

Diff for: .github/workflows/test-build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ jobs:
160160
# Observatory
161161
REACT_APP_OBSERVATORY_API_URL: https://observatory-api.mdn.allizom.net
162162
run: |
163+
set -eo pipefail
163164
164165
# Info about which CONTENT_* environment variables were set and to what.
165166
echo "CONTENT_ROOT=$CONTENT_ROOT"

0 commit comments

Comments
 (0)