Fix pipeline restart (#3402)

closes #3399
This commit is contained in:
Anbraten 2024-02-17 10:19:28 +01:00 committed by GitHub
parent c664d86566
commit f86c2b7d0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ func NewForge(timeout time.Duration) Service {
func (f *forgeFetcher) Fetch(ctx context.Context, forge forge.Forge, user *model.User, repo *model.Repo, pipeline *model.Pipeline, oldConfigData []*types.FileMeta, restart bool) (files []*types.FileMeta, err error) {
// skip fetching if we are restarting and have the old config
if restart && len(oldConfigData) > 0 {
return
return oldConfigData, nil
}
ffc := &forgeFetcherContext{