From bf4466e38953312bec95a5f1c8e63679ff283851 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 15 Aug 2024 16:01:03 -0700 Subject: [PATCH] cr --- .github/workflows/validate_new_notebooks.yml | 4 +++- libs/langchain-scripts/src/validate_notebook.ts | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate_new_notebooks.yml b/.github/workflows/validate_new_notebooks.yml index bb6bffebc062..9cb9d1cb8df1 100644 --- a/.github/workflows/validate_new_notebooks.yml +++ b/.github/workflows/validate_new_notebooks.yml @@ -51,7 +51,9 @@ jobs: notebooks=$(echo '${{ steps.changed-files.outputs.all_changed_files }}' | tr ' ' '\n' | grep '^docs/core_docs/.*\.ipynb$' || true) if [ -n "$notebooks" ]; then for notebook in $notebooks; do - yarn notebook:validate "$notebook" + absolute_path="$GITHUB_WORKSPACE/$notebook" + echo "Validating $absolute_path" + yarn notebook:validate "$absolute_path" done else echo "No notebooks in docs/core_docs to validate." diff --git a/libs/langchain-scripts/src/validate_notebook.ts b/libs/langchain-scripts/src/validate_notebook.ts index caade263ab36..bc65e428d46b 100644 --- a/libs/langchain-scripts/src/validate_notebook.ts +++ b/libs/langchain-scripts/src/validate_notebook.ts @@ -69,6 +69,10 @@ if (!pathname) { } const run = async () => { + console.log({ + pathname, + processCwd: process.cwd(), + }); if (!pathname.endsWith(".ipynb")) { throw new Error("Only .ipynb files are supported."); }