Not able to forcefully push code via Github workflow #134024
Unanswered
xavierbrabhakar
asked this question in
General
Replies: 2 comments 4 replies
-
|
use CI or CD tool |
Beta Was this translation helpful? Give feedback.
1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Team, I have a protected branch in GitHub, after enabling the "bypass actor to foreful push" i am able to push forcefully via local machine.
But the same command is being used in the workflow to commit the code getting below error.
remote: error: GH006: Protected branch update failed for refs/heads/test.
remote: error: Changes must be made through a pull request.
To https://github.com/abc/xyz
! [remote rejected] test -> test (protected branch hook declined)
error: failed to push some refs to 'https://github.com/abc/xyz'
Error: Process completed with exit code 1.
Could you please suggest on this.
Beta Was this translation helpful? Give feedback.
All reactions