Skip to content

Commit 928f35c

Browse files
committed
fix
1 parent 2fc347b commit 928f35c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/actions/task_state.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ func FullSteps(task *actions_model.ActionTask) []*actions_model.ActionTaskStep {
3535
} else if task.Status.IsDone() {
3636
preStep.Stopped = task.Stopped
3737
preStep.Status = actions_model.StatusFailure
38+
// preStep(Success) -> step1(Skipped) -> step2(Success)
39+
if firstStep.Status.IsSkipped() {
40+
preStep.Status = actions_model.StatusSuccess
41+
}
3842
if task.Status.IsSkipped() {
3943
preStep.Status = actions_model.StatusSkipped
4044
}

0 commit comments

Comments
 (0)