Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix git workflow for Prepare-release #376

Open
growupanand opened this issue Sep 27, 2024 · 0 comments
Open

Fix git workflow for Prepare-release #376

growupanand opened this issue Sep 27, 2024 · 0 comments
Labels
bug Something isn't working CI/CD

Comments

@growupanand
Copy link
Owner

Right now it is working for any PR which has target branch "main", But If we create PR which have base branch "main" (Protected branch) it is not working. It fails at the final step of "Push changes".

Error:

Run git push origin main -f
remote: error: GH006: Protected branch update failed for refs/heads/main.        
remote: 
remote: - Changes must be made through a pull request.        
To https://github.com/growupanand/ConvoForm
 ! [remote rejected] main -> main (protected branch hook declined)
error: failed to push some refs to 'https://github.com/growupanand/ConvoForm'
Error: Process completed with exit code 1.

Solution

Find a way to push or force push changes to protected branch in a workflow.

@growupanand growupanand added bug Something isn't working CI/CD labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI/CD
Projects
None yet
Development

No branches or pull requests

1 participant