diff --git a/scripts/e2e-renovate.sh b/scripts/e2e-renovate.sh index c42b40c..2b6fe1f 100755 --- a/scripts/e2e-renovate.sh +++ b/scripts/e2e-renovate.sh @@ -6,9 +6,18 @@ renovate-config-validator echo "Running Renovate E2E (no dry-run)..." # Capture output but also stream it to stdout for debugging +set +e renovate > renovate-e2e-output.log 2>&1 +RENOVATE_EXIT_CODE=$? +set -e + cat renovate-e2e-output.log +if [ $RENOVATE_EXIT_CODE -ne 0 ]; then + echo "Error: Renovate command failed with exit code $RENOVATE_EXIT_CODE" + exit 1 +fi + # Assertions echo "Checking for successful run..." if ! grep -q "Repository finished" renovate-e2e-output.log; then