1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

Correctly init workflow metadata for cli exec (#4211)

This commit is contained in:
6543 2024-10-09 12:17:23 +02:00 committed by GitHub
parent 98d7b1b500
commit 2e29d43b58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 { 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 { if !singleExec {
// TODO: proper try to use the engine to generate the same metadata for workflows // TODO: proper try to use the engine to generate the same metadata for workflows
// https://github.com/woodpecker-ci/woodpecker/pull/3967 // https://github.com/woodpecker-ci/woodpecker/pull/3967