From f690115ce2d83eff3e74a4aa14263d5dd7470fb9 Mon Sep 17 00:00:00 2001 From: Maksim Date: Tue, 12 May 2026 18:05:39 +0300 Subject: [PATCH] fix(sync-docs): use absolute paths for sync target and report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/sync-docs.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 076ef66bb..6d3eaeb07 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -38,10 +38,12 @@ jobs: - run: yarn install --immutable - run: yarn workspace @vc-shell/docs-sync build - name: Run sync + env: + WORKSPACE_DIR: ${{ github.workspace }} run: | yarn workspace @vc-shell/docs-sync exec docs-sync sync \ - --target ./vc-docs \ - --report ./sync-report.md + --target "$WORKSPACE_DIR/vc-docs" \ + --report "$WORKSPACE_DIR/sync-report.md" - name: Open PR env: GH_TOKEN: ${{ secrets.REPO_TOKEN }} @@ -82,5 +84,5 @@ jobs: --base "$BASE" \ --head "$BRANCH" \ --title "$TITLE" \ - --body-file ../sync-report.md \ + --body-file "$GITHUB_WORKSPACE/sync-report.md" \ --label auto-generated