mirror of
https://github.com/gaurav-nelson/github-action-markdown-link-check.git
synced 2024-11-29 09:12:26 +03:00
Merge pull request #88 from bpkroth/master
Fix find command quoting issues for multiple folders.
This commit is contained in:
commit
72d871b8c6
9
.github/workflows/push.yml
vendored
9
.github/workflows/push.yml
vendored
@ -9,6 +9,15 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
check-modified-files-only: 'yes'
|
||||
markdown-link-check-folders:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: markdown-link-check
|
||||
uses: ./
|
||||
with:
|
||||
# Add a test to restrict the test to just dir4 and dir5.
|
||||
folder-path: './md/dir4, ./md/dir5'
|
||||
shellcheck:
|
||||
runs-on: [ubuntu-latest]
|
||||
steps:
|
||||
|
@ -182,9 +182,9 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
|
||||
else
|
||||
|
||||
if [ "$5" -ne -1 ]; then
|
||||
FIND_CALL=('find' "${FOLDERS}" '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
|
||||
FIND_CALL=('find' ${FOLDERS} '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
|
||||
else
|
||||
FIND_CALL=('find' "${FOLDERS}" '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
|
||||
FIND_CALL=('find' ${FOLDERS} '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
|
||||
fi
|
||||
|
||||
add_options
|
||||
|
6
md/dir4/ok4.md
Normal file
6
md/dir4/ok4.md
Normal file
@ -0,0 +1,6 @@
|
||||
# Ok4
|
||||
|
||||
## Test
|
||||
|
||||
Go to [Ok5](../dir5/ok5.md#test)
|
||||
|
6
md/dir5/ok5.md
Normal file
6
md/dir5/ok5.md
Normal file
@ -0,0 +1,6 @@
|
||||
# Ok5
|
||||
|
||||
## Test
|
||||
|
||||
Go to [Ok4](../dir4/ok4.md#test)
|
||||
|
Loading…
Reference in New Issue
Block a user