You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a target_sync_branch that has a Branch protection rule configured and with target_branch_push_args: --force, I receive the following error:
Pushing synced data to target branch.
remote: error: GH006: Protected branch update failed for refs/heads/my-target-branch.
remote: error: Changes must be made through a pull request.
Expected behavior
For the sync to occur successfully, even though the target branch is protected.
Additional details
The Branch protection rule is configured to:
Require a pull request before merging (with Require approvals=1).
Allow force pushes (by Everyone).
Here is the step from my workflow (with some substitutions for clarity):
There is the possibility that this is user error - that I'm missing some setting or input in the action or branch rule settings - if so then I'd be very happy for some guidance...!
Otherwise, a feature to support such a case may be desired by more users...
The text was updated successfully, but these errors were encountered:
Overview
With a
target_sync_branch
that has a Branch protection rule configured and withtarget_branch_push_args: --force
, I receive the following error:Expected behavior
For the sync to occur successfully, even though the target branch is protected.
Additional details
Conclusion
There is the possibility that this is user error - that I'm missing some setting or input in the action or branch rule settings - if so then I'd be very happy for some guidance...!
Otherwise, a feature to support such a case may be desired by more users...
The text was updated successfully, but these errors were encountered: