mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 08:06:52 +02:00
attempt fix gitlab drone.sec issue
This commit is contained in:
parent
759c81fc4e
commit
525fd50f43
@ -214,9 +214,15 @@ func (g *Gitlab) Script(user *model.User, repo *model.Repo, build *model.Build)
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
cfg, err := client.RepoRawFile(id, build.Commit, ".drone.yml")
|
||||
enc, _ := client.RepoRawFile(id, build.Commit, ".drone.sec")
|
||||
return cfg, enc, err
|
||||
out1, err := client.RepoRawFile(id, build.Commit, ".drone.yml")
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
out2, err := client.RepoRawFile(id, build.Commit, ".drone.sec")
|
||||
if err != nil {
|
||||
return out1, nil, err
|
||||
}
|
||||
return out1, out2, err
|
||||
}
|
||||
|
||||
// NOTE Currently gitlab doesn't support status for commits and events,
|
||||
|
Loading…
Reference in New Issue
Block a user