mirror of
				https://gitea.com/gitea/act_runner.git
				synced 2025-11-04 06:38:55 +01:00 
			
		
		
		
	Support configuration variables (#157)
				
					
				
			related to: https://gitea.com/gitea/act_runner/issues/127 `act_runner` only needs to pass `vars` from `Gitea` to `act`. Reviewed-on: https://gitea.com/gitea/act_runner/pulls/157 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: sillyguodong <gedong_1994@163.com> Co-committed-by: sillyguodong <gedong_1994@163.com>
This commit is contained in:
		@@ -190,6 +190,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
 | 
			
		||||
		Privileged:            r.cfg.Container.Privileged,
 | 
			
		||||
		DefaultActionInstance: taskContext["gitea_default_actions_url"].GetStringValue(),
 | 
			
		||||
		PlatformPicker:        r.labels.PickPlatform,
 | 
			
		||||
		Vars:                  task.Vars,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	rr, err := runner.New(runnerConfig)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user