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