1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Update weekly broken content linting workflow (#42659)

This commit is contained in:
Grace Park
2023-09-18 09:28:32 -07:00
committed by GitHub
parent ada7e6eee6
commit 36a646e7a7

View File

@@ -29,12 +29,16 @@ jobs:
uses: ./.github/actions/node-npm-setup
- name: Run content linter
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
- name: Open issue in docs-content
if: ${{ always() && steps.linting-content-data.outcome == 'failure' }}
env:
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
REPORT_AUTHOR: docs-bot
REPORT_LABEL: broken content markdown report
REPORT_REPOSITORY: github/docs-content
timeout-minutes: 10
run: |
node src/content-linter/scripts/markdownlint.js --errors-only --paths content data --output-file /tmp/error-lints.json
node .github/actions-scripts/post-lints.js --path /tmp/error-lints.json
run: node .github/actions-scripts/post-lints.js --path /tmp/error-lints.json