mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
parent
375309a8a8
commit
4683968925
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ func metadataFromContext(_ context.Context, c *cli.Command, axis matrix.Axis) (m
|
||||||
|
|
||||||
var changedFiles []string
|
var changedFiles []string
|
||||||
changedFilesRaw := c.String("pipeline-files")
|
changedFilesRaw := c.String("pipeline-files")
|
||||||
if changedFilesRaw[0] == '[' {
|
if len(changedFilesRaw) != 0 && changedFilesRaw[0] == '[' {
|
||||||
if err := json.Unmarshal([]byte(changedFilesRaw), &changedFiles); err != nil {
|
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-files detected json but could not parse it: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue