File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -400,6 +400,9 @@ def _collect_workflow_details_slack(
400400 self ._format_steps_for_slack (workflow_status [1 ], workflow_name )
401401 )
402402
403+ if self .slack_format == SlackFormat .ONE_STEP :
404+ details = details [- 1 :]
405+
403406 return "\n " .join (details )
404407
405408 def _format_steps_for_slack (
@@ -415,7 +418,7 @@ def _format_steps_for_slack(
415418 List of formatted step strings
416419 """
417420 details : List [str ] = []
418- details .append (f"*{ prefix } *" )
421+ # details.append(f"*{prefix}*")
419422
420423 for step_status , step_name , step_message in steps :
421424 if step_status == StepStatus .SUCCEEDED :
@@ -429,7 +432,4 @@ def _format_steps_for_slack(
429432 details .append (f"• ❌ { step_name } { msg } " )
430433 break
431434
432- if self .slack_format == SlackFormat .ONE_STEP :
433- details = details [- 1 :]
434-
435435 return details
You can’t perform that action at this time.
0 commit comments