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, ",") {