chore: only lint changed READMEs (#11677)
This commit is contained in:
parent
e0a6b02289
commit
0568006fa5
|
|
@ -15,9 +15,10 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Get changed files
|
- name: Get changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v18.7
|
uses: tj-actions/changed-files@v26.1
|
||||||
with:
|
with:
|
||||||
base_sha: ${{ github.event.pull_request.base.sha }}
|
base_sha: ${{ github.event.pull_request.base.sha }}
|
||||||
files: plugins/**/README.md
|
files: ./plugins/**/README.md
|
||||||
- name: Run readme linter on changed files
|
- name: Run readme linter on changed files
|
||||||
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
run: go run ./tools/readme_linter ${{ steps.changed-files.outputs.all_changed_files }}
|
run: go run ./tools/readme_linter ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue