mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Support changing labels of Actions runner without re-registration (#24806)
close #24540 related: - Protocol: https://gitea.com/gitea/actions-proto-def/pulls/9 - Runner side: https://gitea.com/gitea/act_runner/pulls/201 changes: - Add column of `labels` to table `action_runner`, and combine the value of `agent_labels` and `custom_labels` column to `labels` column. - Store `labels` when registering `act_runner`. - Update `labels` when `act_runner` starting and calling `Declare`. - Users cannot modify the `custom labels` in edit page any more. other changes: - Store `version` when registering `act_runner`. - If runner is latest version, parse version from `Declare`. But older version runner still parse version from request header.
This commit is contained in:
		@@ -20,6 +20,7 @@ import (
 | 
			
		||||
	"code.gitea.io/gitea/models/migrations/v1_18"
 | 
			
		||||
	"code.gitea.io/gitea/models/migrations/v1_19"
 | 
			
		||||
	"code.gitea.io/gitea/models/migrations/v1_20"
 | 
			
		||||
	"code.gitea.io/gitea/models/migrations/v1_21"
 | 
			
		||||
	"code.gitea.io/gitea/models/migrations/v1_6"
 | 
			
		||||
	"code.gitea.io/gitea/models/migrations/v1_7"
 | 
			
		||||
	"code.gitea.io/gitea/models/migrations/v1_8"
 | 
			
		||||
@@ -497,6 +498,11 @@ var migrations = []Migration{
 | 
			
		||||
	NewMigration("Add PinOrder Column", v1_20.AddPinOrderToIssue),
 | 
			
		||||
	// v259 -> 260
 | 
			
		||||
	NewMigration("Convert scoped access tokens", v1_20.ConvertScopedAccessTokens),
 | 
			
		||||
 | 
			
		||||
	// Gitea 1.21.0 ends at 260
 | 
			
		||||
 | 
			
		||||
	// v260 -> v261
 | 
			
		||||
	NewMigration("Add label column to action_run table, and combine labels", v1_21.DropCustomLabelsColumnToActRunner),
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// GetCurrentDBVersion returns the current db version
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user