Skip to content

The agent engineering platform.

fix(infra): handle special case for `langchain-tavily` repository checkout during ref build (#33324)

Mason Daugherty29b5df3881a5
diff --git a/.github/workflows/api_doc_build.yml b/.github/workflows/api_doc_build.yml
index 3315dfb4f7..6665a19a92 100644
--- a/.github/workflows/api_doc_build.yml
+++ b/.github/workflows/api_doc_build.yml
@@ -78,7 +78,16 @@ jobs:
exit 1
fi
echo "Checking out $repo to $REPO_NAME"
- git clone --depth 1 --branch v0.3 https://github.com/$repo.git $REPO_NAME
+
+ # Special handling for langchain-tavily: checkout by commit hash
+ if [[ "$REPO_NAME" == "langchain-tavily" ]]; then
+ git clone https://github.com/$repo.git $REPO_NAME
+ cd $REPO_NAME
+ git checkout f3515654724a9e87bdfe2c2f509d6cdde646e563
+ cd ..
+ else
+ git clone --depth 1 --branch v0.3 https://github.com/$repo.git $REPO_NAME
+ fi
done
- name: "🐍 Setup Python ${{ env.PYTHON_VERSION }}"