Skip to content

Commit 7b1450b

Browse files
committed
chore(ci): simplify link-checker.yaml
1 parent 01a0f3b commit 7b1450b

File tree

1 file changed

+11
-27
lines changed

1 file changed

+11
-27
lines changed

.github/workflows/link-checker.yaml

+11-27
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,27 @@ name: Check Markdown links
22

33
on:
44
pull_request:
5+
paths:
6+
- '**.md'
7+
- 'docs/**'
58

69

710
jobs:
811
markdown-link-check:
912
runs-on: ubuntu-latest
1013
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
2915

3016
# 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/'
3722

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
4024
uses: gaurav-nelson/github-action-markdown-link-check@v1
4125
with:
4226
config-file: '.github/workflows/link-checker.config.json'
4327
# 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

Comments
 (0)