mirror of
https://github.com/actions/runner-images.git
synced 2026-01-07 18:58:13 +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:
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user