From b59533a06fcd4f50aec7760a670f98ef3c00462a Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 24 Sep 2024 20:29:19 +0200 Subject: [PATCH] cli exec: rename "--pipeline-files" to "--pipeline-changed-files" (#4142) --- cli/exec/flags.go | 2 +- cli/exec/metadata.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/exec/flags.go b/cli/exec/flags.go index 4302c5805..2bb54fdb8 100644 --- a/cli/exec/flags.go +++ b/cli/exec/flags.go @@ -235,7 +235,7 @@ var flags = []cli.Flag{ &cli.StringFlag{ Sources: cli.EnvVars("CI_PIPELINE_FILES"), Usage: "Set the metadata environment variable \"CI_PIPELINE_FILES\", either json formatted list of strings, or comma separated string list.", - Name: "pipeline-files", + Name: "pipeline-changed-files", }, &cli.StringFlag{ Sources: cli.EnvVars("CI_COMMIT_SHA"), diff --git a/cli/exec/metadata.go b/cli/exec/metadata.go index 9e83bff91..23e23ffd1 100644 --- a/cli/exec/metadata.go +++ b/cli/exec/metadata.go @@ -44,10 +44,10 @@ func metadataFromContext(_ context.Context, c *cli.Command, axis matrix.Axis) (m } var changedFiles []string - changedFilesRaw := c.String("pipeline-files") + changedFilesRaw := c.String("pipeline-changed-files") if len(changedFilesRaw) != 0 && changedFilesRaw[0] == '[' { if err := json.Unmarshal([]byte(changedFilesRaw), &changedFiles); err != nil { - return metadata.Metadata{}, fmt.Errorf("pipeline-files detected json but could not parse it: %w", err) + return metadata.Metadata{}, fmt.Errorf("pipeline-changed-files detected json but could not parse it: %w", err) } } else { for _, file := range strings.Split(changedFilesRaw, ",") {