Pushing to protected branch | --force not working #249
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I think we've (colleagues and I) answered the question above. GitHub Docs: Allow force pushes
Basically, the force flag is moot since it doesn't override the fact that the "Require status checks to pass before merging"/"Require branches to be up to date before merging" rules have not passed (i.e. the Action's commit does not go through the upstream workflow steps [tests]). |
Beta Was this translation helpful? Give feedback.
-
|
Had this question open the whole day but couldn't find the time answering your question … until now. :) To use this Action in combination with protected branches and In the past we had several issues about protected branches and required status checks. You can find them below.
Hope this helps resolving your issue. |
Beta Was this translation helpful? Give feedback.


Had this question open the whole day but couldn't find the time answering your question … until now. :)
To use this Action in combination with protected branches and
git push --forceyou have to use a personal access token. See https://github.com/stefanzweifel/git-auto-commit-action#push-to-protected-branches.In the past we had several issues about protected branches and required status checks. You can find them below.
Hope this helps resolving your issue.