diff --git a/act/runner/run_context.go b/act/runner/run_context.go index bf74a92f..f344a046 100644 --- a/act/runner/run_context.go +++ b/act/runner/run_context.go @@ -254,6 +254,10 @@ func (rc *RunContext) stopHostEnvironment(ctx context.Context) error { logger := common.Logger(ctx) logger.Debugf("stopHostEnvironment") + if !rc.IsLXCHostEnv(ctx) { + return nil + } + var stopScript bytes.Buffer if err := stopTemplate.Execute(&stopScript, struct { Name string