From 0cc4c4fddbd71545c2aa10dcf9e11474249ff177 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Fri, 5 Jan 2024 08:36:23 +0100 Subject: [PATCH] Update validate_markdown.yml --- .github/workflows/validate_markdown.yml | 36 ++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate_markdown.yml b/.github/workflows/validate_markdown.yml index 4199745..6d010dc 100644 --- a/.github/workflows/validate_markdown.yml +++ b/.github/workflows/validate_markdown.yml @@ -6,7 +6,40 @@ on: workflow_dispatch: jobs: - markdown-check: + markdown-lint-quick: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4.1.0 + + # https://github.com/marketplace/actions/markdownlint-cli2-action + - name: Identify changed files + uses: tj-actions/changed-files@v41 + id: changed-files + with: + files: '**/*.md' + separator: "," + - name: Markdown Lint + uses: DavidAnson/markdownlint-cli2-action@v14 + if: steps.changed-files.outputs.any_changed == 'true' + with: + globs: ${{ steps.changed-files.outputs.all_changed_files }} + separator: "," + config: '.rules/custom.markdownlint.jsonc' + + markdown-lint-detailed: + runs-on: ubuntu-latest + needs: + - markdown-lint-quick + steps: + - name: Check out code + uses: actions/checkout@v4.1.0 + + # https://github.com/actionshub/markdownlint + - name: Markdown Lint + uses: actionshub/markdownlint@main + + markdown-links: runs-on: ubuntu-latest steps: - name: Check out code @@ -37,3 +70,4 @@ jobs: with: check-modified-files-only: 'yes' +