File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,22 @@ jobs:
66
66
make chlog-validate \
67
67
|| { echo "New ./.chloggen/*.yaml file failed validation."; exit 1; }
68
68
69
- # In order to validate any links in the yaml file, render the config to markdown
70
- - name : Render .chloggen changelog entries
71
- run : make chlog-preview > changelog_preview.md
69
+ check-links :
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - uses : dorny/paths-filter@v3
73
+ id : changes
74
+ with :
75
+ filters : |
76
+ changelog:
77
+ - 'CHANGELOG.md'
72
78
- name : Install markdown-link-check
79
+ if : steps.changes.outputs.changelog == 'true'
73
80
run : npm install -g markdown-link-check
74
81
- name : Run markdown-link-check
82
+ if : steps.changes.outputs.changelog == 'true'
75
83
run : |
76
84
markdown-link-check \
77
85
--verbose \
78
86
--config .github/workflows/check_links_config.json \
79
- changelog_preview.md \
80
- || { echo "Check that anchor links are lowercase"; exit 1; }
87
+ CHANGELOG.md
You can’t perform that action at this time.
0 commit comments