update workflow

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-10-03 00:26:33 +03:00
parent a3e2097f24
commit e74cfad61d

View File

@ -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) logger.Fatalf(ctx, "failed to reset repo branch: %v", err)
} }
/* if err = wtree.PullContext(ctx, &git.PullOptions{
if err = wtree.PullContext(ctx, &git.PullOptions{Force: true, RemoteName: "origin"}); err != nil { Auth: &httpauth.BasicAuth{Username: envTOKEN, Password: envTOKEN},
logger.Fatalf(ctx, "failed to pull repo: %v", err) 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) logger.Infof(ctx, "checkout ref %s", headRef)
if err = wtree.Checkout(&git.CheckoutOptions{ if err = wtree.Checkout(&git.CheckoutOptions{