diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 450e78f..ebb30d7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -9,6 +9,7 @@ jobs: uses: ./ with: check-modified-files-only: 'yes' + folder-path:'./md' markdown-link-check-folders: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index fa6c8b2..5458be7 100644 --- a/README.md +++ b/README.md @@ -260,3 +260,6 @@ GitHub Action - Markdown link check follows the [GitHub recommended versioning s Buy me a coffee.

+ + +See https://pubsadasdsadasdasdasdas.aasasdas.odasdarg/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07 diff --git a/entrypoint.sh b/entrypoint.sh index ea1dc1d..ce08240 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -128,9 +128,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' ${FOLDERS} '-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' ${FOLDERS} '-type' 'f' '(' ${FILES} ')' '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}') fi add_options @@ -164,6 +164,10 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then git fetch origin "${BASE_BRANCH}" --depth=1 > /dev/null MASTER_HASH=$(git rev-parse origin/"${BASE_BRANCH}") + if [ -z "$FOLDERS" ]; then + FOLDERS="." + fi + FIND_CALL=('markdown-link-check') add_options diff --git a/md/dir2/level-1a.md b/md/dir2/level-1a.md index 1930c4d..548b4a1 100644 --- a/md/dir2/level-1a.md +++ b/md/dir2/level-1a.md @@ -6,7 +6,7 @@ www.google.com [This is a broken link](https://www.exampleexample.cox) [This is another broken link](http://ignored-domain.com) but its ignored using a -configuration file. +configuration file. ### Alpha @@ -22,4 +22,6 @@ But [missing files are reported](missing-example.js). [alpha]: #alpha [charlie]: #charlie -External file: [Charlie](./file2.md/#charlie) \ No newline at end of file +External file: [Charlie](./file2.md/#charlie) + +Modified. \ No newline at end of file