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 #68 from gaurav-nelson/modified-test
deleted file check
This commit is contained in:
commit
95d5f3b63d
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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)
|
@ -7,4 +7,4 @@ This [one does](#bravo).
|
||||
|
||||
## Charlie
|
||||
|
||||
This is linked from file1.
|
||||
This is linked from file1. www.samplefailfailfail.co
|
Loading…
Reference in New Issue
Block a user