mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 01:10:31 +00:00
attempt fix gitlab drone.sec issue
This commit is contained in:
parent
759c81fc4e
commit
525fd50f43
1 changed files with 9 additions and 3 deletions
|
@ -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 a new issue