Skip to content

Commit 5fcf646

Browse files
committed
Before using yamllint on newly changed files, filter by extension
This needs to be done in addition to filter within the .yamllint file because CI runs yamllint on individual files and not directories. The configuration within the .yamllint works when yamllint is given a directory.
1 parent 79b309d commit 5fcf646

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Run yamllint on files modified by the PR
3737
run: |
3838
exit_code=0
39-
for file in $(cat filenames.txt); do
39+
for file in $(grep -E '\.(yml|yaml|fmf|profile)$' filenames.txt); do
4040
if [[ ! -f "$file" ]]; then
4141
continue
4242
fi

0 commit comments

Comments
 (0)