update workflow
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
a3e2097f24
commit
e74cfad61d
@ -287,11 +287,14 @@ func giteaPullRequest(ctx context.Context, cfg *Config, branch string, mods map[
|
||||
logger.Fatalf(ctx, "failed to reset repo branch: %v", err)
|
||||
}
|
||||
|
||||
/*
|
||||
if err = wtree.PullContext(ctx, &git.PullOptions{Force: true, RemoteName: "origin"}); err != nil {
|
||||
logger.Fatalf(ctx, "failed to pull repo: %v", err)
|
||||
}
|
||||
*/
|
||||
if err = wtree.PullContext(ctx, &git.PullOptions{
|
||||
Auth: &httpauth.BasicAuth{Username: envTOKEN, Password: envTOKEN},
|
||||
Depth: 1,
|
||||
RemoteURL :
|
||||
Force: true,
|
||||
RemoteName: "origin"}); err != nil {
|
||||
logger.Fatalf(ctx, "failed to pull repo: %v", err)
|
||||
}
|
||||
|
||||
logger.Infof(ctx, "checkout ref %s", headRef)
|
||||
if err = wtree.Checkout(&git.CheckoutOptions{
|
||||
|
Loading…
Reference in New Issue
Block a user