From 337d6b19ba8a70630d48be8a42b0f14fb65e5f9e Mon Sep 17 00:00:00 2001 From: Colton Baumler <63077899+ccbaumler@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:26:29 -0800 Subject: [PATCH] Update update_index.yaml with better target --- .github/workflows/update_index.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_index.yaml b/.github/workflows/update_index.yaml index 729f615..02d2496 100644 --- a/.github/workflows/update_index.yaml +++ b/.github/workflows/update_index.yaml @@ -28,8 +28,8 @@ jobs: # Diff HEAD with the previous commit $diff = git diff --name-only HEAD^ HEAD - # Check if a markdown file and only a markdown file in the first recursive layer of the docs/ directory has been added or deleted - $SourceDiff = $diff | Where-Object { $_ -match '^docs/' -and $_ -like '*.md' -and $_ -notlike '*/*' } + # Check if a markdown file and only a markdown file in the docs/ directory has been added or deleted + $SourceDiff = $diff | Where-Object { $_ -match '^docs/' -and $_ -like '*.md' } $HasDiff = $SourceDiff.Length -gt 0 # Set the output named "docs_changed"