From 629dde3ba227b0b3bfdeb4a3f460ea50746f9bc6 Mon Sep 17 00:00:00 2001 From: Sadek Baroudi Date: Mon, 31 Oct 2022 11:46:40 -0700 Subject: [PATCH] capturing qmk make exit status to prevent false positives in github actions build --- bin/fp_build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/fp_build.sh b/bin/fp_build.sh index 0d23c8d5a5..1f81c3f88f 100755 --- a/bin/fp_build.sh +++ b/bin/fp_build.sh @@ -238,7 +238,12 @@ process_build_string() { if [[ "${run_build}" == "yes" ]]; then echo "fp_build.sh: Running QMK Build...." echo "" - eval "${build_string}" + build_run_output=$(eval "${build_string}" | tee /dev/stderr) + build_run_status=$? + if [[ $build_run_status -ne 0 ]]; then + echo "${0} build run failed with status ${build_run_status}" + exit $build_run_status + fi rename_file_from_build_string "${build_string}" fi