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