From 2e29d43b589add4f84d804b83b2126c022a89207 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 9 Oct 2024 12:17:23 +0200 Subject: [PATCH] Correctly init workflow metadata for cli exec (#4211) --- cli/exec/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/exec/exec.go b/cli/exec/exec.go index d33d96c65..afededad9 100644 --- a/cli/exec/exec.go +++ b/cli/exec/exec.go @@ -132,7 +132,7 @@ func runExec(ctx context.Context, c *cli.Command, file, repoPath string, singleE } func execWithAxis(ctx context.Context, c *cli.Command, file, repoPath string, axis matrix.Axis, singleExec bool) error { - var metadataWorkflow *metadata.Workflow + metadataWorkflow := &metadata.Workflow{} if !singleExec { // TODO: proper try to use the engine to generate the same metadata for workflows // https://github.com/woodpecker-ci/woodpecker/pull/3967