From 4c59a5e2495c626ab98c14e988114a3646299ddf Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Wed, 11 Sep 2024 13:08:46 -0400 Subject: [PATCH] ci: ignore link check for storm tutorial (#1679) --- .github/workflows/deploy_docs.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 4946c14d6..43dc4d3fa 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -56,14 +56,13 @@ jobs: --check-links-ignore "https://(api|web|docs)\.smith\.langchain\.com/.*" \ --check-links-ignore "https://x.com/.*" \ --check-links-ignore "https://github\.com/.*" \ - --check-links-ignore "https://promptengineering\.org/.*" \ --check-links-ignore "/.*\.(ipynb|html)$" \ - --check-links $(find docs/site -name "index.html") + --check-links $(find docs/site -name "index.html" | grep -v 'storm.ipynb') else echo "Fetching changes from origin/main..." git fetch origin main echo "Checking for changed notebook files..." - CHANGED_FILES=$(git diff --name-only --diff-filter=d origin/main | grep 'docs/docs/.*\.ipynb$' | sed -E 's|^docs/docs/|docs/site/|; s/\.ipynb$/\/index.html/' || true) + CHANGED_FILES=$(git diff --name-only --diff-filter=d origin/main | grep 'docs/docs/.*\.ipynb$' | grep -v 'storm.ipynb' | sed -E 's|^docs/docs/|docs/site/|; s/\.ipynb$/\/index.html/' || true) echo "Changed files: ${CHANGED_FILES}" if [ -n "${CHANGED_FILES}" ]; then echo "Running link check on HTML files matching changed notebook files..." @@ -71,7 +70,6 @@ jobs: --check-links-ignore "https://(api|web|docs)\.smith\.langchain\.com/.*" \ --check-links-ignore "https://x.com/.*" \ --check-links-ignore "https://github\.com/.*" \ - --check-links-ignore "https://promptengineering\.org/.*" \ --check-links-ignore "/.*\.(ipynb|html)$" \ --check-links ${CHANGED_FILES} \ || ([ $? = 5 ] && exit 0 || exit $?)