From 42b6a19d3d421c9e8689d55683c3c55d1a16ea1d Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Fri, 5 Nov 2021 18:42:16 +0100 Subject: [PATCH] Fix wrong build result when single add-on build fails (#11522) Fixes the issue that single add-on builds that fail are not marked as such in GitHub Actions. Signed-off-by: Wouter Born --- .github/scripts/maven-build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/scripts/maven-build b/.github/scripts/maven-build index 8ee64663e29..77722811027 100755 --- a/.github/scripts/maven-build +++ b/.github/scripts/maven-build @@ -87,7 +87,9 @@ function build_addon() { echo "+ $mvn_command" echo + set -o pipefail # exit build with error when pipes fail $mvn_command 2>&1 | tee "$BUILD_LOG" + exit $? } function build_based_on_changes() {