name: Auto-merge agent-sync on: push: branches: [agent-sync] permissions: contents: write jobs: merge: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 ref: main - name: Merge agent-sync into main run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git merge origin/agent-sync --no-edit git push origin main