Skip to content

Commit c8d72cf

Browse files
authored
Update broken-links.yml
1 parent b475c71 commit c8d72cf

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/broken-links.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff 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::"

0 commit comments

Comments
 (0)