From 85626b6bbddbeda1cf2d2badcf7fcc2d92aabeff Mon Sep 17 00:00:00 2001 From: sillyguodong Date: Fri, 28 Apr 2023 22:06:08 +0800 Subject: [PATCH] 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 Co-authored-by: sillyguodong Co-committed-by: sillyguodong --- internal/app/run/runner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index c5801eb..79b0620 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -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)