mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 22:01:44 +02:00
chore(runner): return task state.
This commit is contained in:
1 parent
0f5aab0c1a
commit
797cdfbdb8
1 file changed
+6
-1
@@ -220,7 +220,12 @@ func (s *Service) UpdateTask(
|
||||
}
|
||||
}
|
||||
|
||||
return connect.NewResponse(&runnerv1.UpdateTaskResponse{}), nil
|
||||
return connect.NewResponse(&runnerv1.UpdateTaskResponse{
|
||||
State: &runnerv1.TaskState{
|
||||
Id: req.Msg.State.Id,
|
||||
Result: task.Status.AsResult(),
|
||||
},
|
||||
}), nil
|
||||
}
|
||||
|
||||
// UpdateLog uploads log of the task.
|
||||
|
||||
Reference in new issue
Block a user