mirror of
https://github.com/gaurav-nelson/github-action-markdown-link-check.git
synced 2024-11-29 09:12:26 +03:00
parent
72d871b8c6
commit
7d57278b54
1
.github/workflows/push.yml
vendored
1
.github/workflows/push.yml
vendored
@ -18,6 +18,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# Add a test to restrict the test to just dir4 and dir5.
|
# Add a test to restrict the test to just dir4 and dir5.
|
||||||
folder-path: './md/dir4, ./md/dir5'
|
folder-path: './md/dir4, ./md/dir5'
|
||||||
|
file-path: './md/AdditionalFileTest1.md, ./md/AdditionalFileTest2.md'
|
||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
|
@ -125,9 +125,9 @@ check_additional_files () {
|
|||||||
|
|
||||||
if [ -n "$FILES" ]; then
|
if [ -n "$FILES" ]; then
|
||||||
if [ "$MAX_DEPTH" -ne -1 ]; then
|
if [ "$MAX_DEPTH" -ne -1 ]; then
|
||||||
FIND_CALL=('find' '.' '-type' 'f' '(' "${FILES}" ')' '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
|
FIND_CALL=('find' '.' '-type' 'f' '(' ${FILES} ')' '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
|
||||||
else
|
else
|
||||||
FIND_CALL=('find' '.' '-type' 'f' '(' "${FILES}" ')' '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
|
FIND_CALL=('find' '.' '-type' 'f' '(' ${FILES} ')' '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
add_options
|
add_options
|
||||||
|
6
md/AdditionalFileTest1.md
Normal file
6
md/AdditionalFileTest1.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# AdditionalFileTest1
|
||||||
|
|
||||||
|
## Test
|
||||||
|
|
||||||
|
Go to [AdditionalFileTest2](./AdditionalFileTest2.md#test)
|
||||||
|
|
6
md/AdditionalFileTest2.md
Normal file
6
md/AdditionalFileTest2.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# AdditionalFileTest2
|
||||||
|
|
||||||
|
## Test
|
||||||
|
|
||||||
|
Go to [AdditionalFileTest1](./AdditionalFileTest1.md#test)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user