From: Wouter Born Date: Fri, 5 Nov 2021 17:42:16 +0000 (+0100) Subject: Fix wrong build result when single add-on build fails (#11522) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=42b6a19d3d421c9e8689d55683c3c55d1a16ea1d;p=openhab-addons.git 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 --- diff --git a/.github/scripts/maven-build b/.github/scripts/maven-build index 8ee64663e2..7772281102 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() {