Skip to content

Commit

Permalink
Update update_index.yaml with better target
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbaumler authored Mar 1, 2024
1 parent c3b34c3 commit 337d6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 337d6b1

Please sign in to comment.