Skip to content

Commit 04aeb7b

Browse files
authored
CI: Run linter only on changes of JSON and MD files (#4527)
1 parent be2dc03 commit 04aeb7b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/linter.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ name: Linter
55
on:
66
pull_request:
77
branches: [ main ]
8+
paths:
9+
- '**.json'
10+
- '**.md'
11+
- '**.sh'
812

913
jobs:
1014
build:
@@ -18,12 +22,12 @@ jobs:
1822
fetch-depth: 0
1923

2024
- name: Lint Code Base
21-
uses: github/super-linter@v3
25+
uses: github/super-linter/slim@v4
2226
env:
2327
VALIDATE_ALL_CODEBASE: false
2428
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2529
VALIDATE_JSON: true
26-
VALIDATE_MD: true
30+
VALIDATE_MARKDOWN: true
2731
DEFAULT_BRANCH: ${{ github.base_ref }}
2832

2933
- name: Checking shebang lines in MacOS and Ubuntu releases.

0 commit comments

Comments
 (0)