Skip to content

Commit 1bfebf9

Browse files
committed
examples: Print log file if there is any
1 parent 1062f75 commit 1bfebf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci-examples.sh

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ function run_sample {
170170
pushd "$bin_dir" 1>/dev/null 2>&1
171171
if [[ ! "$dry_run" = true ]]; then
172172
./"$sample" "${args[@]}" || result=$?
173+
if [[ -f ./"log-$sample.txt" ]]; then
174+
cat ./"log-$sample.txt"
175+
fi
173176
fi
174177
if [[ $result -eq 0 ]]; then
175178
summary=("${summary[@]}" " success")

0 commit comments

Comments
 (0)