Skip to content

fix(sync-docs): use absolute paths for sync target and report#226

Merged
maksimzinchuk merged 1 commit into
mainfrom
feat/sync-docs-workflow-dispatch
May 13, 2026
Merged

fix(sync-docs): use absolute paths for sync target and report#226
maksimzinchuk merged 1 commit into
mainfrom
feat/sync-docs-workflow-dispatch

Conversation

@maksimzinchuk
Copy link
Copy Markdown
Collaborator

Summary

yarn workspace @vc-shell/docs-sync exec runs commands with cwd set to the workspace package's directory (cli/docs-sync/), not the repo root. The previous --target ./vc-docs therefore resolved to cli/docs-sync/vc-docs/ inside the workflow workspace — not the vc-docs checkout at \$GITHUB_WORKSPACE/vc-docs.

The writer silently created files at the wrong path (it does mkdir -p recursively), so git status in the real vc-docs checkout reported no changes, and the workflow exited with "No changes to sync" without opening a PR.

What changes

Pass absolute paths via \$GITHUB_WORKSPACE:

  • --target "\$WORKSPACE_DIR/vc-docs"
  • --report "\$WORKSPACE_DIR/sync-report.md"
  • --body-file "\$GITHUB_WORKSPACE/sync-report.md"

How to verify

After merge: Actions → sync-docs → Run workflow with target_branch: docs/vc-shell-integration. Auto-PR should open with the 127 expected file changes.

yarn workspace @vc-shell/docs-sync exec runs commands with cwd set to
the workspace's package dir (cli/docs-sync/), not the repo root. The
previous '--target ./vc-docs' therefore resolved to cli/docs-sync/vc-docs/
inside the workflow workspace — not the vc-docs checkout. The writer
silently created files there (mkdir recursive), so git status in the
real vc-docs checkout reported no changes and no PR was opened.

Resolve via $GITHUB_WORKSPACE absolute paths for both --target and the
PR body file.
@maksimzinchuk maksimzinchuk force-pushed the feat/sync-docs-workflow-dispatch branch from 40134f3 to f690115 Compare May 13, 2026 09:54
@maksimzinchuk maksimzinchuk merged commit c27f12c into main May 13, 2026
8 of 9 checks passed
@maksimzinchuk maksimzinchuk deleted the feat/sync-docs-workflow-dispatch branch May 13, 2026 09:56
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