mirror of
https://github.com/go-gitea/gitea
synced 2025-07-27 04:38:36 +00:00
fix: update step status when stoping
This commit is contained in:
@@ -446,6 +446,7 @@ func StopTask(ctx context.Context, task *Task, result runnerv1.Result) (*Task, e
|
|||||||
for _, step := range task.Steps {
|
for _, step := range task.Steps {
|
||||||
if step.Result == runnerv1.Result_RESULT_UNSPECIFIED {
|
if step.Result == runnerv1.Result_RESULT_UNSPECIFIED {
|
||||||
step.Result = result
|
step.Result = result
|
||||||
|
step.Status = Status(result)
|
||||||
if step.Started == 0 {
|
if step.Started == 0 {
|
||||||
step.Started = now
|
step.Started = now
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user