1
0
mirror of synced 2026-01-05 21:04:17 -05:00

content linter npm script (#43038)

This commit is contained in:
Rachael Sewell
2023-09-21 19:08:27 -07:00
committed by GitHub
parent 426b4829b5
commit 05703f4712
4 changed files with 3 additions and 3 deletions

View File

@@ -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 }}

View File

@@ -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' }}