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