1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00

fix: update step status when stoping

This commit is contained in:
Jason Song 2022-11-02 18:20:26 +08:00
parent 705aaf3eb2
commit 83bb244a2c

View File

@ -446,6 +446,7 @@ func StopTask(ctx context.Context, task *Task, result runnerv1.Result) (*Task, e
for _, step := range task.Steps {
if step.Result == runnerv1.Result_RESULT_UNSPECIFIED {
step.Result = result
step.Status = Status(result)
if step.Started == 0 {
step.Started = now
}