Skip to content

fix: sync workflow creates PR instead of pushing directly to main#3

Merged
itallstartedwithaidea merged 1 commit intomainfrom
fix/sync-workflow-use-pr
Mar 31, 2026
Merged

fix: sync workflow creates PR instead of pushing directly to main#3
itallstartedwithaidea merged 1 commit intomainfrom
fix/sync-workflow-use-pr

Conversation

@itallstartedwithaidea
Copy link
Copy Markdown
Owner

Summary

  • Rewrites the Sync Upstream Doc Sources workflow to create a PR instead of pushing directly to main
  • Adds pull-requests: write permission so the workflow can open PRs
  • Checks for existing PRs on the same branch to avoid duplicates

What was broken

Branch protection rules on main require changes via pull request, but the workflow was doing a direct git push — failing with GH006: Protected branch update failed on every daily scheduled run since March 23.

Test plan

  • Trigger workflow manually via workflow_dispatch
  • Verify it creates a PR instead of pushing directly
  • Verify no-op runs (no upstream changes) exit cleanly without creating a PR

Made with Cursor

Branch protection rules require changes via pull request, but the
workflow was doing a direct git push to main — failing every daily run
since March 23. Now creates a timestamped branch and opens a PR.

Made-with: Cursor
@itallstartedwithaidea itallstartedwithaidea merged commit 0382f37 into main Mar 31, 2026
4 of 7 checks passed
@itallstartedwithaidea itallstartedwithaidea deleted the fix/sync-workflow-use-pr branch March 31, 2026 01:36
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.

1 participant