Skip to content

Commit

Permalink
Fix trap-logging to CI ant not GITHUB_ACTIONS
Browse files Browse the repository at this point in the history
Signed-off-by: Viacheslav Bocharov <[email protected]>
  • Loading branch information
adeepn authored and igorpecovnik committed Jul 4, 2024
1 parent d73c4ce commit c27c55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/logging/trap-logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c27c55b

Please sign in to comment.