File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ func FullSteps(task *actions_model.ActionTask) []*actions_model.ActionTaskStep {
2323 // 1. preStep(Success) -> step1(Success) -> step2(Running) -> step3(Waiting) -> postStep(Waiting): firstStep is step1.
2424 // 2. preStep(Success) -> step1(Skipped) -> step2(Success) -> postStep(Success): firstStep is step2.
2525 // 3. preStep(Success) -> step1(Running) -> step2(Waiting) -> postStep(Waiting): firstStep is step1.
26- // 3. preStep(Success) -> step1(Skipped) -> step2(Skipped) -> postStep(Skipped): firstStep is nil.
26+ // 4. preStep(Success) -> step1(Skipped) -> step2(Skipped) -> postStep(Skipped): firstStep is nil.
27+ // 5. preStep(Success) -> step1(Cancelled) -> step2(Cancelled) -> postStep(Cancelled): firstStep is nil.
2728 var firstStep * actions_model.ActionTaskStep
2829 // lastHasRunStep is the last step that has run.
2930 // For example,
@@ -51,6 +52,7 @@ func FullSteps(task *actions_model.ActionTask) []*actions_model.ActionTaskStep {
5152 Status : actions_model .StatusRunning ,
5253 }
5354
55+ // No step has run or is running, so preStep is equal to the task
5456 if firstStep == nil {
5557 preStep .Stopped = task .Stopped
5658 preStep .Status = task .Status
You can’t perform that action at this time.
0 commit comments