Skip to content

Commit e4219ba

Browse files
authored
fix(ci): exclude deleted files from linter to prevent crash (#4952)
1 parent 3d56534 commit e4219ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Get changed JavaScript files
2626
id: get_files
2727
run: |
28-
CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- '*.js')
28+
CHANGED_FILES=$(git diff --diff-filter=ACMRT --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- '*.js')
2929
echo "files<<EOF" >> $GITHUB_ENV
3030
echo "$CHANGED_FILES" >> $GITHUB_ENV
3131
echo "EOF" >> $GITHUB_ENV

0 commit comments

Comments
 (0)