diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7f85fae..703da8a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -8,9 +8,7 @@ jobs: - name: markdown-link-check uses: ./ with: - use-quiet-mode: 'yes' - folder-path: 'md/dir1, md/dir2' - file-path: './README.md, ./LICENSE, ./md/file4.markdown' + check-modified-files-only: 'yes' shellcheck: runs-on: [ubuntu-latest] steps: diff --git a/entrypoint.sh b/entrypoint.sh index 17e339c..145eaec 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -163,7 +163,7 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then add_options - mapfile -t FILE_ARRAY < <( git diff --name-only "$MASTER_HASH" ) + mapfile -t FILE_ARRAY < <( git diff --name-only --diff-filter=AM "$MASTER_HASH" ) for i in "${FILE_ARRAY[@]}" do diff --git a/md/dir3/level-1a.md b/md/dir3/level-1a.md deleted file mode 100644 index 1930c4d..0000000 --- a/md/dir3/level-1a.md +++ /dev/null @@ -1,25 +0,0 @@ - -## Test internal and external links - -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. - -### Alpha - -This [exists](#alpha). -This [one does not](#does-not). -References and definitions are [checked][alpha] [too][charlie]. - -### Bravo - -Headings in `readme.md` are [not checked](file1.md#bravo). -But [missing files are reported](missing-example.js). - -[alpha]: #alpha -[charlie]: #charlie - -External file: [Charlie](./file2.md/#charlie) \ No newline at end of file diff --git a/md/dir3/level-1b.md b/md/dir3/level-1b.md index cb065f9..0401811 100644 --- a/md/dir3/level-1b.md +++ b/md/dir3/level-1b.md @@ -7,4 +7,4 @@ This [one does](#bravo). ## Charlie -This is linked from file1. \ No newline at end of file +This is linked from file1. www.samplefailfailfail.co \ No newline at end of file