diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 703da8a..c521305 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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: diff --git a/entrypoint.sh b/entrypoint.sh index 3d123c2..74cd4a4 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 diff --git a/md/dir4/ok4.md b/md/dir4/ok4.md new file mode 100644 index 0000000..1a5b1ce --- /dev/null +++ b/md/dir4/ok4.md @@ -0,0 +1,6 @@ +# Ok4 + +## Test + +Go to [Ok5](../dir5/ok5.md#test) + diff --git a/md/dir5/ok5.md b/md/dir5/ok5.md new file mode 100644 index 0000000..58db19f --- /dev/null +++ b/md/dir5/ok5.md @@ -0,0 +1,6 @@ +# Ok5 + +## Test + +Go to [Ok4](../dir4/ok4.md#test) +