From cf4c5b7e19259bc282d4524523c698762c56985a Mon Sep 17 00:00:00 2001 From: AbhinavOhri Date: Wed, 24 Apr 2024 20:22:11 +0530 Subject: [PATCH] Updating regex pattern --- .github/workflows/build-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 85e2488b87a..eef213ec362 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -61,7 +61,7 @@ jobs: - name: Check for changes in documentation run: | - if git diff origin/master..."$(git rev-parse --abbrev-ref HEAD)" --name-only | cat | grep 'docs' | grep -q .; then + if git diff origin/master..."$(git rev-parse --abbrev-ref HEAD)" --name-only | cat | grep '^docs/' | grep -q .; then num_files=$(git diff --name-only origin/master...HEAD | grep '^docs/' | wc -l) echo "Changes found in documentation files: $num_files" exit 0