fix: update sync workflows to create PRs instead of pushing to main #76
+58
−22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of changes
This PR fixes issue #75 by modifying both sync workflows to create pull requests automatically instead of pushing directly to the main branch.
Problem
The current sync workflows (
sync-docs-code-blocksandsync-agent-sdk-openapi) attempt to push directly to the main branch, which is blocked by repository branch protection rules that require changes to be made through pull requests. This causes the workflows to fail with the error:Solution
Updated both workflows to:
sync-docs-code-blocks-20250104-020000)gh pr create)Changes Made
sync-docs-code-blocks.ymlsync-agent-sdk-openapi.ymlpull-requests: writepermissionTesting
The workflows will now:
Fixes #75
@xingyaoww can click here to continue refining the PR