feat(workflow): record steps skipped by when as skipped
This commit is contained in:
1 parent
320b9dc340
commit
0598a357dd
15 files changed
+93
-25
No files matched your search
@@ -233,6 +233,10 @@ func stepEventData(to taskstate.StepStatus, durationMS int64, detail string) map
|
||||
data["error"] = detail
|
||||
case taskstate.StepInterrupted:
|
||||
data["interrupted"] = true
|
||||
case taskstate.StepSkipped:
|
||||
// The detail is the when condition that skipped the step.
|
||||
data["skipped"] = true
|
||||
data["when"] = detail
|
||||
}
|
||||
return data
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user