From 00662ab5578181839d21d29274555da784627779 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Tue, 1 Oct 2024 14:14:32 -0400 Subject: [PATCH] ci: update the check for changed notebooks (#1945) --- .github/workflows/deploy_docs.yml | 34 +++++++++---------- .github/workflows/run_notebooks.yml | 2 +- .../pass-run-time-values-to-tools.ipynb | 1 - docs/docs/index.md | 1 - 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 052b15e3e..cd413eecf 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -22,24 +22,24 @@ concurrency: cancel-in-progress: false jobs: - # get-changed-files: - # runs-on: ubuntu-latest - # outputs: - # changed-files: ${{ steps.changed-files.outputs.all }} - # steps: - # - uses: actions/checkout@v4 - # - name: Get changed files - # id: changed-files - # uses: Ana06/get-changed-files@v2.3.0 - # with: - # filter: "docs/docs/**" + get-changed-files: + runs-on: ubuntu-latest + outputs: + changed-files: ${{ steps.changed-files.outputs.all }} + steps: + - uses: actions/checkout@v4 + - name: Get changed files + id: changed-files + uses: Ana06/get-changed-files@v2.3.0 + with: + filter: "docs/docs/**" - # run-changed-notebooks: - # needs: get-changed-files - # uses: ./.github/workflows/run_notebooks.yml - # secrets: inherit - # with: - # changed-files: ${{ needs.get-changed-files.outputs.changed-files }} + run-changed-notebooks: + needs: get-changed-files + uses: ./.github/workflows/run_notebooks.yml + secrets: inherit + with: + changed-files: ${{ needs.get-changed-files.outputs.changed-files }} deploy: # needs: run-changed-notebooks diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.yml index 4451ddc2e..bcf562e8f 100644 --- a/.github/workflows/run_notebooks.yml +++ b/.github/workflows/run_notebooks.yml @@ -65,7 +65,7 @@ jobs: echo "Running all notebooks" ./docs/_scripts/execute_notebooks.sh else - CHANGED_FILES=$(echo '${{ inputs.changed-files }}' | tr ' ' '\n' | grep '\.ipynb$') + CHANGED_FILES=$(echo '${{ inputs.changed-files }}' | tr ' ' '\n' | grep '\.ipynb$' || true) if [ -n "$CHANGED_FILES" ]; then echo "Running changed notebooks: $CHANGED_FILES" ./docs/_scripts/execute_notebooks.sh $CHANGED_FILES diff --git a/docs/docs/how-tos/pass-run-time-values-to-tools.ipynb b/docs/docs/how-tos/pass-run-time-values-to-tools.ipynb index dca18b771..206c9c5fd 100644 --- a/docs/docs/how-tos/pass-run-time-values-to-tools.ipynb +++ b/docs/docs/how-tos/pass-run-time-values-to-tools.ipynb @@ -317,7 +317,6 @@ "outputs": [], "source": [ "from langchain_openai import ChatOpenAI\n", - "\n", "from langgraph.prebuilt import ToolNode\n", "\n", "model = ChatOpenAI(model=\"gpt-4o\", temperature=0)\n", diff --git a/docs/docs/index.md b/docs/docs/index.md index 823cabba7..072f2aada 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -1,5 +1,4 @@ --- - hide_comments: true hide: - navigation