From 36a646e7a72e739a4f015d4936ea61d0fd92c02e Mon Sep 17 00:00:00 2001 From: Grace Park Date: Mon, 18 Sep 2023 09:28:32 -0700 Subject: [PATCH] Update weekly broken content linting workflow (#42659) --- .../workflows/lint-entire-content-data-markdown.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-entire-content-data-markdown.yml b/.github/workflows/lint-entire-content-data-markdown.yml index d08e343e1e..bb873722b1 100644 --- a/.github/workflows/lint-entire-content-data-markdown.yml +++ b/.github/workflows/lint-entire-content-data-markdown.yml @@ -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