[CI] Don't include deleted Python files in yapf check (#6350)

This commit is contained in:
John Demme 2023-10-26 18:58:57 -07:00 committed by GitHub
parent a1f892efca
commit 583b36b3bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ jobs:
if: ${{ always() }}
shell: bash
run: |
files=$(git diff --name-only $DIFF_COMMIT | grep -e '\.py$' || echo -n)
files=$(git diff --name-only --diff-filter=d $DIFF_COMMIT | grep -e '\.py$' || echo -n)
if [[ ! -z $files ]]; then
yapf --diff $files
fi