fix: sync-preview workflow always creates PR instead of direct push#1078
fix: sync-preview workflow always creates PR instead of direct push#1078
Conversation
|
Reviewed the workflow — a few things worth considering before merge: 1. PRs created by
|
Coverage Report
|
…w-only files Branch protection on preview prevents direct pushes. Changed workflow to always create a PR instead of pushing directly. Also auto-resolves conflicts in files that are intentionally different on preview (package.json, package-lock.json, CHANGELOG.md, schema) by keeping preview's version. Only creates a conflict PR if other files have merge conflicts.
1cdd7ec to
a36a123
Compare
|
1/ is a real issue. unfortunately we need a PAT token or github app token to resolve that |
Summary
Branch protection on
previewprevents direct pushes from the GitHub Actions bot. Changed thesync-previewworkflow to always create a PR instead of pushing directly.Changes
package.json(version number)package-lock.jsonCHANGELOG.mdschemas/agentcore.schema.v1.jsonBefore
preview(blocked by branch protection)After
Both paths skip if there's already an open sync PR.
Test plan