Skip to content

Commit bd7a497

Browse files
author
Michael Kaiser
committed
Fix build-pull-request to display errors
1 parent 0eba763 commit bd7a497

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-pull-request.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,12 @@ jobs:
122122
# Run the build_file function in parallel for each project to be built
123123
# Halt the execution if any of the build_file invocations fail
124124
parallel --keep-order --halt-on-error 2 build_file ::: "${apps_to_build[@]}"
125+
126+
# Check the exit status of parallel
127+
parallel_exit=$?
128+
129+
# If parallel failed, make sure the workflow fails too
130+
if [ $parallel_exit -ne 0 ]; then
131+
echo "::error::One or more builds failed. See error details above."
132+
exit $parallel_exit
133+
fi

0 commit comments

Comments
 (0)