CI: Run linter only on changes of JSON and MD files (#4527)

This commit is contained in:
Ewout ter Hoeven
2021-11-22 10:36:16 +01:00
committed by GitHub
parent be2dc0315b
commit 04aeb7bfd4

View File

@@ -5,6 +5,10 @@ name: Linter
on:
pull_request:
branches: [ main ]
paths:
- '**.json'
- '**.md'
- '**.sh'
jobs:
build:
@@ -18,12 +22,12 @@ jobs:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v3
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_JSON: true
VALIDATE_MD: true
VALIDATE_MARKDOWN: true
DEFAULT_BRANCH: ${{ github.base_ref }}
- name: Checking shebang lines in MacOS and Ubuntu releases.