mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 18:39:49 +08:00
CI: Run linter only on changes of JSON and MD files (#4527)
This commit is contained in:
8
.github/workflows/linter.yml
vendored
8
.github/workflows/linter.yml
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user