]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix wrong build result when single add-on build fails (#11522)
authorWouter Born <github@maindrain.net>
Fri, 5 Nov 2021 17:42:16 +0000 (18:42 +0100)
committerGitHub <noreply@github.com>
Fri, 5 Nov 2021 17:42:16 +0000 (18:42 +0100)
Fixes the issue that single add-on builds that fail are not marked as such in GitHub Actions.

Signed-off-by: Wouter Born <github@maindrain.net>
.github/scripts/maven-build

index 8ee64663e29733a6fa83cea76974d5905683876a..777228110277b8c4d4008ff4172ede20f8dcc1f5 100755 (executable)
@@ -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() {