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:
parent
705aaf3eb2
commit
83bb244a2c
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user