From 410a1e466ca1213d02e944bc3f7c938a79d91ea4 Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Fri, 11 Sep 2026 08:42:33 +0200 Subject: [PATCH] fix(ci): keep optional report extraction non-blocking --- scripts/ci-deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ci-deploy.sh b/scripts/ci-deploy.sh index 2a16b5d0..b82c7e59 100644 --- a/scripts/ci-deploy.sh +++ b/scripts/ci-deploy.sh @@ -101,12 +101,12 @@ DOCKER_BUILDKIT=1 docker build --network=host --progress=plain --cache-from epic check_current # Read reports from the already-built image; do not start an extra application. report_container="" -if report_container="$(docker create --entrypoint /bin/true "$image")"; then +if report_container="$(docker create --entrypoint /bin/true "$image")" && [ -n "$report_container" ]; then mkdir -p build-reports - if docker cp "$report_container:/app/build-reports/." build-reports; then + if docker cp "$report_container:/app/build-reports/." build-reports && [ -s build-reports/report.md ]; then cat build-reports/report.md if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then - cat build-reports/report.md >> "$GITHUB_STEP_SUMMARY" + cat build-reports/report.md >> "$GITHUB_STEP_SUMMARY" || echo "Warning: could not append performance summary" >&2 fi else echo "Warning: build performance report unavailable" >&2