diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index 1dec77df..78faf1e8 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -204,12 +204,17 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report. } workdir := filepath.FromSlash(fmt.Sprintf("/%s/%s", workdirParent, preset.Repository)) + actionCacheDir := filepath.FromSlash(r.cfg.Host.WorkdirParent) + runnerConfig := &runner.Config{ // On Linux, Workdir will be like "///" // On Windows, Workdir will be like "\\\" Workdir: workdir, BindWorkdir: r.cfg.Container.BindWorkdir, - ActionCacheDir: filepath.FromSlash(r.cfg.Host.WorkdirParent), + ActionCacheDir: actionCacheDir, + ActionCache: &runner.GoGitActionCache{ + Path: actionCacheDir, + }, ReuseContainers: false, ForcePull: r.cfg.Container.ForcePull,