From c27c55b0bc2546c476bf45512a9157cc40a5d1ba Mon Sep 17 00:00:00 2001 From: Viacheslav Bocharov Date: Mon, 24 Jun 2024 11:48:36 +0300 Subject: [PATCH] Fix trap-logging to CI ant not GITHUB_ACTIONS Signed-off-by: Viacheslav Bocharov --- lib/functions/logging/trap-logging.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/logging/trap-logging.sh b/lib/functions/logging/trap-logging.sh index f27a1c7095f5..830aad5a8345 100644 --- a/lib/functions/logging/trap-logging.sh +++ b/lib/functions/logging/trap-logging.sh @@ -97,7 +97,7 @@ function trap_handler_cleanup_logging() { fi # Export Markdown assets, but not if in GHA and GHA_EXPORT_MD_SUMMARY != yes - if [[ "${CI}" == "true" ]] && [[ "${GITHUB_ACTIONS}" == "true" ]] && [[ "${GHA_EXPORT_MD_SUMMARY:-no}" != "yes" ]]; then + if [[ "${CI}" == "true" ]] && ( [[ "${GITHUB_ACTIONS}" != "true" ]] || [[ "${GHA_EXPORT_MD_SUMMARY:-no}" != "yes" ]] ); then display_alert "Not exporting Markdown logs to GitHub Actions" "GITHUB_ACTIONS: '${GITHUB_ACTIONS}', GHA_EXPORT_MD_SUMMARY: '${GHA_EXPORT_MD_SUMMARY}'" "debug" else # Export Markdown logs.