Skip to content

Commit

Permalink
Update update_index.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbaumler authored Mar 1, 2024
1 parent a7ea79e commit 2a7b0db
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 @@ -26,10 +26,10 @@ jobs:
shell: pwsh
run: |
# Diff HEAD with the previous commit
$diff = git diff --name-only HEAD^ HEAD
$diff = git diff --name-only --diff-filter=ADM HEAD^ HEAD
# Check if a markdown file and only a markdown file in the docs/ directory has been added or deleted
$SourceDiff = $diff | Where-Object { ($_ -match '^A' -or $_ -match '^D') -and $_ -notmatch '^M' -and $_ -match '^docs/' }
$SourceDiff = $diff | Where-Object { ($_ -match '^A' -or $_ -match '^D') -and $_ -match '^docs/' }
$HasDiff = $SourceDiff.Length -gt 0
# Set the output named "docs_changed"
Expand Down

0 comments on commit 2a7b0db

Please sign in to comment.