File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -18,28 +18,23 @@ jobs:
1818 with :
1919 node-version : ' 18'
2020
21- - name : Create markdown-link-check config
21+ - name : Install markdown-link-check
22+ run : npm install -g markdown-link-check
23+
24+ - name : Create Ignore Config
2225 run : |
23- cat <<EOT > .markdown-link-check.json
24- {
26+ echo '{
2527 "ignorePatterns": [
2628 {
27- "pattern": "./Assets/*"
28- },
29- {
30- "pattern": "./assets/*"
29+ "pattern": "^\\.\\/Assets\\/"
3130 }
3231 ]
33- }
34- EOT
35-
36- - name : Install markdown-link-check
37- run : npm install -g markdown-link-check
32+ }' > markdown-link-check-config.json
3833
3934 - name : Check README links
4035 id : check-links
4136 run : |
42- markdown-link-check --config . markdown-link-check.json --verbose README.md > link-check-results.txt || true
37+ markdown-link-check --verbose -- config markdown-link-check-config .json README.md > link-check-results.txt || true
4338 echo "::group::Link Check Results"
4439 cat link-check-results.txt
4540 echo "::endgroup::"
You can’t perform that action at this time.
0 commit comments