Skip to content

Commit 36a646e

Browse files
authored
Update weekly broken content linting workflow (#42659)
1 parent ada7e6e commit 36a646e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/lint-entire-content-data-markdown.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ jobs:
2929
uses: ./.github/actions/node-npm-setup
3030

3131
- name: Run content linter
32+
id: linting-content-data
33+
timeout-minutes: 10
34+
continue-on-error: true
35+
run: node src/content-linter/scripts/markdownlint.js --errors-only --paths content data --output-file /tmp/error-lints.json
36+
37+
- name: Open issue in docs-content
38+
if: ${{ always() && steps.linting-content-data.outcome == 'failure' }}
3239
env:
3340
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
3441
REPORT_AUTHOR: docs-bot
3542
REPORT_LABEL: broken content markdown report
3643
REPORT_REPOSITORY: github/docs-content
37-
timeout-minutes: 10
38-
run: |
39-
node src/content-linter/scripts/markdownlint.js --errors-only --paths content data --output-file /tmp/error-lints.json
40-
node .github/actions-scripts/post-lints.js --path /tmp/error-lints.json
44+
run: node .github/actions-scripts/post-lints.js --path /tmp/error-lints.json

0 commit comments

Comments
 (0)