Skip to content

Commit d52759e

Browse files
author
Michael Kaiser
committed
Fix build-pull-request to display errors
1 parent 8195cb3 commit d52759e

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
echo "Build Path $file"
6363
6464
# Run the build script for the current language, passing the project directory and extra path
65-
<<<<<<< HEAD
6665
echo "::group::Building $file"
6766
# Run the build command and capture output to both the log file and stdout
6867
../scripts/build-${language}.sh "$file" 2>&1 | tee "$log_file"
@@ -89,20 +88,6 @@ jobs:
8988
else
9089
echo "❌ Build failed for $file with exit code $exit_code"
9190
echo "::error::Build failed for $file with exit code $exit_code"
92-
=======
93-
echo "::group::$file"
94-
if ../scripts/build-${language}.sh "$file" > "$log_file" 2>&1; then
95-
echo "::endgroup::"
96-
return 0
97-
else
98-
local exit_code=$?
99-
echo "::endgroup::"
100-
echo "::group::Error details for $file"
101-
cat "$log_file"
102-
echo "::endgroup::"
103-
echo "::error::Build failed for $file with exit code $exit_code"
104-
return $exit_code
105-
>>>>>>> 0eba763 (Fix build-pull-request to display errors)
10691
fi
10792
echo "::endgroup::"
10893
return $exit_code

0 commit comments

Comments
 (0)