|
11 | 11 | permissions: read-all |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - lint: |
15 | | - name: Lint markdown files |
16 | | - runs-on: ubuntu-latest |
17 | | - steps: |
18 | | - - name: Harden Runner |
19 | | - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 |
20 | | - with: |
21 | | - egress-policy: audit |
22 | | - |
23 | | - - name: Checkout devtools |
24 | | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
25 | | - |
26 | | - - name: Register markdownlint warning matcher |
27 | | - run: | |
28 | | - echo "::add-matcher::.github/markdownlint.json" |
29 | | -
|
30 | | - - name: Lint markdown files |
31 | | - uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0 |
32 | | - with: |
33 | | - args: '**/*.md' |
34 | | - config: '.github/markdownlint.jsonc' |
35 | | - ignore: 'third_party_licenses.md' |
36 | | - |
37 | | - - name: Remove markdownlint warning matcher |
38 | | - if: always() |
39 | | - run: | |
40 | | - echo "::remove-matcher owner=markdownlint::" |
41 | | -
|
42 | | - check-links: |
43 | | - name: Check markdown links |
44 | | - runs-on: ubuntu-latest |
45 | | - steps: |
46 | | - - name: Checkout devtools |
47 | | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
48 | | - |
49 | | - - name: Check links |
50 | | - uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # master |
51 | | - # Checks all Markdown files, including those in subfolders, |
52 | | - # as the PR may involve removing referenced Markdown files. |
53 | | - with: |
54 | | - use-quiet-mode: 'yes' |
55 | | - use-verbose-mode: 'yes' |
56 | | - base-branch: ${{ github.base_ref }} |
57 | | - config-file: '.github/markdown-link-check.jsonc' |
58 | | - |
| 14 | + markdown-check: |
| 15 | + uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/markdown-lint.yml@v1.0.0 |
| 16 | + with: |
| 17 | + lint-config: '.github/markdownlint.jsonc' |
| 18 | + link-check-config: '.github/markdown-link-check.jsonc' |
| 19 | + ignore-files: 'third_party_licenses.md' |
0 commit comments