Refactor "string truncate" (#32984)

This commit is contained in:
wxiaoguang authored and GitHub committed 2024-12-26 11:56:03 +08:00
1 parent 594edad213
commit 9bfa9f450d
26 files changed
+199 -140

No files matched your search

+1 -1
View File
@@ -298,7 +298,7 @@ func CreateTaskForRunner(ctx context.Context, runner *ActionRunner) (*ActionTask
if len(workflowJob.Steps) > 0 {
steps := make([]*ActionTaskStep, len(workflowJob.Steps))
for i, v := range workflowJob.Steps {
name, _ := util.SplitStringAtByteN(v.String(), 255)
name := util.EllipsisDisplayString(v.String(), 255)
steps[i] = &ActionTaskStep{
Name: name,
TaskID: task.ID,