File tree Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 9
9
uses : ./
10
10
with :
11
11
check-modified-files-only : ' yes'
12
+ markdown-link-check-folders :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@master
16
+ - name : markdown-link-check
17
+ uses : ./
18
+ with :
19
+ # Add a test to restrict the test to just dir4 and dir5.
20
+ folder-path : ' ./md/dir4, ./md/dir5'
12
21
shellcheck :
13
22
runs-on : [ubuntu-latest]
14
23
steps :
Original file line number Diff line number Diff line change @@ -182,9 +182,9 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
182
182
else
183
183
184
184
if [ " $5 " -ne -1 ]; then
185
- FIND_CALL=(' find' " ${FOLDERS} " ' -name' ' *' " ${FILE_EXTENSION} " ' -not' ' -path' ' ./node_modules/*' ' -maxdepth' " ${MAX_DEPTH} " ' -exec' ' markdown-link-check' ' {}' )
185
+ FIND_CALL=(' find' ${FOLDERS} ' -name' ' *' " ${FILE_EXTENSION} " ' -not' ' -path' ' ./node_modules/*' ' -maxdepth' " ${MAX_DEPTH} " ' -exec' ' markdown-link-check' ' {}' )
186
186
else
187
- FIND_CALL=(' find' " ${FOLDERS} " ' -name' ' *' " ${FILE_EXTENSION} " ' -not' ' -path' ' ./node_modules/*' ' -exec' ' markdown-link-check' ' {}' )
187
+ FIND_CALL=(' find' ${FOLDERS} ' -name' ' *' " ${FILE_EXTENSION} " ' -not' ' -path' ' ./node_modules/*' ' -exec' ' markdown-link-check' ' {}' )
188
188
fi
189
189
190
190
add_options
Original file line number Diff line number Diff line change
1
+ # Ok4
2
+
3
+ ## Test
4
+
5
+ Go to [ Ok5] ( ../dir5/ok5.md#test )
6
+
Original file line number Diff line number Diff line change
1
+ # Ok5
2
+
3
+ ## Test
4
+
5
+ Go to [ Ok4] ( ../dir4/ok4.md#test )
6
+
You can’t perform that action at this time.
0 commit comments