mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Backport #28149 by @yp05327 Reproduce: - Create a new Gitea instance - Register a runner - Create a repo and add a workflow - Check the log, you will see warnings:  It comes from:  The reason is that we forgot registering `ActionTaskOutput` model. So `action_table_output` table will be missing in your db. Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
		@@ -20,6 +20,10 @@ type ActionTaskOutput struct {
 | 
				
			|||||||
	OutputValue string `xorm:"MEDIUMTEXT"`
 | 
						OutputValue string `xorm:"MEDIUMTEXT"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						db.RegisterModel(new(ActionTaskOutput))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// FindTaskOutputByTaskID returns the outputs of the task.
 | 
					// FindTaskOutputByTaskID returns the outputs of the task.
 | 
				
			||||||
func FindTaskOutputByTaskID(ctx context.Context, taskID int64) ([]*ActionTaskOutput, error) {
 | 
					func FindTaskOutputByTaskID(ctx context.Context, taskID int64) ([]*ActionTaskOutput, error) {
 | 
				
			||||||
	var outputs []*ActionTaskOutput
 | 
						var outputs []*ActionTaskOutput
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user