fix error message

This commit is contained in:
6543 2023-08-10 00:01:16 +02:00
parent 3e60ff9e2e
commit 23ad363c97
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862

View file

@ -19,12 +19,12 @@ func ParseBytes(b []byte) (*types.Workflow, error) {
// fail hard on deprecated branch filter
if out.BranchesDontUseIt != nil {
return nil, fmt.Errorf("\"branches:\" filter got removed, use \"branch\" in global when filter")
return nil, fmt.Errorf("\"branches:\" filter got removed, use \"branch\" in global when filter instead")
}
// fail hard on deprecated pipeline keyword
if len(out.PipelineDontUseIt.ContainerList) != 0 {
return nil, fmt.Errorf("\"pipeline:\" got removed, user \"steps:\"")
return nil, fmt.Errorf("\"pipeline:\" got removed, use \"steps:\" instead")
}
// support deprecated platform filter