mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 00:46:30 +00:00
Let webhook pass on pipeline parsion error (#3829)
This commit is contained in:
parent
8e181e8748
commit
4dcdebd786
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ func Create(ctx context.Context, _store store.Store, repo *model.Repo, pipeline
|
|||
pipelineItems, parseErr := parsePipeline(_forge, _store, pipeline, repoUser, repo, forgeYamlConfigs, nil)
|
||||
if pipeline_errors.HasBlockingErrors(parseErr) {
|
||||
log.Debug().Str("repo", repo.FullName).Err(parseErr).Msg("failed to parse yaml")
|
||||
return nil, updatePipelineWithErr(ctx, _forge, _store, pipeline, repo, repoUser, parseErr)
|
||||
return pipeline, updatePipelineWithErr(ctx, _forge, _store, pipeline, repo, repoUser, parseErr)
|
||||
} else if parseErr != nil {
|
||||
pipeline.Errors = pipeline_errors.GetPipelineErrors(parseErr)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue