Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@chrisquorum
Copy link

Summary

Fixes the update-quorum.yml workflow that was failing due to branch protection rules.

Root Cause

The quorum branch is protected and requires changes via pull request. The workflow was trying to push directly, which failed with:

remote: error: GH006: Protected branch update failed for refs/heads/quorum.
remote: - Changes must be made through a pull request.

Changes

  1. PR-based approach: Creates a sync branch and PR instead of direct push
  2. Change detection: Checks if there are changes before attempting merge
  3. Removed issue notification: Issues are disabled on this fork
  4. Added summary output: Better visibility via GitHub Step Summary
  5. Graceful conflict handling: Provides manual resolution instructions

New Workflow Logic

  1. Check if main has commits not in quorum
  2. If yes, create a sync branch (sync-main-to-quorum-TIMESTAMP)
  3. Merge main into the sync branch
  4. Push sync branch and create PR to quorum
  5. If merge conflicts, output instructions for manual resolution

Testing

After merge, trigger with:

gh workflow run update-quorum.yml --repo QuorumEarth/agent-zero

- Create sync branch instead of pushing directly to protected quorum
- Check for changes before attempting merge
- Remove issue notification (issues disabled)
- Add proper summary output
- Handle merge conflicts gracefully with instructions
@chrisquorum chrisquorum merged commit 3ec7aab into quorum Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants