Skip to content

Commit 6f305b4

Browse files
authored
Merge pull request #21347 from apache/workflow/fix-lint-diff-file-pattern
fix(workflow): fix match pattern for changed files collection in the lint action
2 parents 7a39313 + cb2d46d commit 6f305b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Collect changed files
4949
run: |
5050
mkdir ~/tmp/
51-
git diff ${{ github.event.pull_request.base.sha }} ${{ github.sha }} --diff-filter=ACM --name-only --relative '*src/**/*.ts' > ~/tmp/changed_files
51+
git diff ${{ github.event.pull_request.base.sha }} ${{ github.sha }} --diff-filter=ACM --name-only --relative '*src/*.ts' '*src/**/*.ts' > ~/tmp/changed_files
5252
echo -e "Changed files: \n$(cat ~/tmp/changed_files)"
5353
5454
- name: Lint

0 commit comments

Comments
 (0)