Skip to content

Commit

Permalink
fix: force push
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-crumbaugh committed Apr 9, 2024
1 parent 1a16e35 commit cf00f0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ func (g *Git) CommitAndPush(openAPIDocVersion, speakeasyVersion, doc string, act
}

if err := g.repo.Push(&git.PushOptions{
Auth: getGithubAuth(g.accessToken),
Auth: getGithubAuth(g.accessToken),
Force: true, // This is necessary because at the beginning of the workflow we reset the branch
}); err != nil {
return "", fmt.Errorf("error pushing changes: %w", err)
}
Expand Down

0 comments on commit cf00f0a

Please sign in to comment.