mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-03 15:22:25 +02:00
parent
375309a8a8
commit
4683968925
@ -45,7 +45,7 @@ func metadataFromContext(_ context.Context, c *cli.Command, axis matrix.Axis) (m
|
||||
|
||||
var changedFiles []string
|
||||
changedFilesRaw := c.String("pipeline-files")
|
||||
if changedFilesRaw[0] == '[' {
|
||||
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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user