From 9e4b6098fd183c15501c0322259a3cd3dccff700 Mon Sep 17 00:00:00 2001 From: "Jens L." Date: Thu, 2 Oct 2025 02:31:56 +0200 Subject: [PATCH] ci: don't log postgres always (#17201) Signed-off-by: Jens Langhammer --- .github/actions/test-results/action.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/actions/test-results/action.yml b/.github/actions/test-results/action.yml index b6a1546768..c7cea93387 100644 --- a/.github/actions/test-results/action.yml +++ b/.github/actions/test-results/action.yml @@ -20,7 +20,9 @@ runs: - name: PostgreSQL Logs shell: bash run: | - docker stop setup-postgresql-1 - echo "::group::PostgreSQL Logs" - docker logs setup-postgresql-1 - echo "::endgroup::" + if [[ $ACTIONS_RUNNER_DEBUG == 'true' || $ACTIONS_STEP_DEBUG == 'true' ]]; then + docker stop setup-postgresql-1 + echo "::group::PostgreSQL Logs" + docker logs setup-postgresql-1 + echo "::endgroup::" + fi