mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	| @@ -336,6 +336,11 @@ func UpdateTask(ctx context.Context, task *ActionTask, cols ...string) error { | ||||
| 		sess.Cols(cols...) | ||||
| 	} | ||||
| 	_, err := sess.Update(task) | ||||
|  | ||||
| 	// Automatically delete the ephemeral runner if the task is done | ||||
| 	if err == nil && task.Status.IsDone() && util.SliceContainsString(cols, "status") { | ||||
| 		return DeleteEphemeralRunner(ctx, task.RunnerID) | ||||
| 	} | ||||
| 	return err | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user