content linter npm script (#43038)
This commit is contained in:
2
.github/workflows/content-lint-markdown.yml
vendored
2
.github/workflows/content-lint-markdown.yml
vendored
@@ -38,4 +38,4 @@ jobs:
|
||||
|
||||
- name: Run content linter if changed content/data files
|
||||
if: steps.changed-files.outputs.any_changed == 'true'
|
||||
run: node src/content-linter/scripts/markdownlint.js --errors-only --paths ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
run: npm run lint-content -- --errors-only --paths ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
id: linting-content-data
|
||||
timeout-minutes: 10
|
||||
continue-on-error: true
|
||||
run: node src/content-linter/scripts/markdownlint.js --errors-only --paths content data --output-file /tmp/error-lints.json
|
||||
run: npm run lint-content -- --errors-only --paths content data --output-file /tmp/error-lints.json
|
||||
|
||||
- name: Open issue in docs-content
|
||||
if: ${{ always() && steps.linting-content-data.outcome == 'failure' }}
|
||||
|
||||
Reference in New Issue
Block a user