diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c521305..450e78f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,6 +18,7 @@ jobs: with: # Add a test to restrict the test to just dir4 and dir5. folder-path: './md/dir4, ./md/dir5' + file-path: './md/AdditionalFileTest1.md, ./md/AdditionalFileTest2.md' shellcheck: runs-on: [ubuntu-latest] steps: diff --git a/entrypoint.sh b/entrypoint.sh index 74cd4a4..8eb12ab 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -125,9 +125,9 @@ check_additional_files () { if [ -n "$FILES" ]; 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 - 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 add_options diff --git a/md/AdditionalFileTest1.md b/md/AdditionalFileTest1.md new file mode 100644 index 0000000..42a91e1 --- /dev/null +++ b/md/AdditionalFileTest1.md @@ -0,0 +1,6 @@ +# AdditionalFileTest1 + +## Test + +Go to [AdditionalFileTest2](./AdditionalFileTest2.md#test) + diff --git a/md/AdditionalFileTest2.md b/md/AdditionalFileTest2.md new file mode 100644 index 0000000..20b2377 --- /dev/null +++ b/md/AdditionalFileTest2.md @@ -0,0 +1,6 @@ +# AdditionalFileTest2 + +## Test + +Go to [AdditionalFileTest1](./AdditionalFileTest1.md#test) +