@@ -2,43 +2,27 @@ name: Check Markdown links
2
2
3
3
on :
4
4
pull_request :
5
+ paths :
6
+ - ' **.md'
7
+ - ' docs/**'
5
8
6
9
7
10
jobs :
8
11
markdown-link-check :
9
12
runs-on : ubuntu-latest
10
13
steps :
11
- - uses : actions/checkout@master
12
-
13
- - name : Get all docs files that have changed
14
- id : changed-files-yaml
15
- uses : tj-actions/changed-files@v45
16
- with :
17
- files_yaml : |
18
- doc:
19
- - '**.md'
20
- - docs/**
21
-
22
- - name : Run step if doc file(s) change
23
- if : steps.changed-files-yaml.outputs.doc_any_changed == 'true'
24
- env :
25
- DOC_ALL_CHANGED_FILES : ${{ steps.changed-files-yaml.outputs.doc_all_changed_files }}
26
- run : |
27
- echo "One or more doc file(s) has changed."
28
- echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES"
14
+ - uses : actions/checkout@v2
29
15
30
16
# If one file is changed, we can check all the files
31
- - name : Check markdown links in docs
32
- if : steps.changed-files-yaml.outputs.doc_any_changed == 'true'
33
- uses : gaurav-nelson/github-action-markdown-link-check@v1
34
- with :
35
- config-file : ' .github/workflows/link-checker.config.json'
36
- folder-path : ' docs/'
17
+ # - name: Check markdown links in docs
18
+ # uses: gaurav-nelson/github-action-markdown-link-check@v1
19
+ # with:
20
+ # config-file: '.github/workflows/link-checker.config.json'
21
+ # folder-path: 'docs/'
37
22
38
- - name : Check markdown files in root
39
- if : steps.changed-files-yaml.outputs.doc_any_changed == 'true'
23
+ - name : Check all markdown files in root
40
24
uses : gaurav-nelson/github-action-markdown-link-check@v1
41
25
with :
42
26
config-file : ' .github/workflows/link-checker.config.json'
43
27
# ignore subfolders we don't want to check everthing, there is a lot of files from plugins that we don't control
44
- max-depth : 0
28
+ # max-depth: 0
0 commit comments