Skip to content

Commit d7dbd9e

Browse files
Merge pull request #18 from Consensys/md-modified-files
only examine modified md files
2 parents fa21842 + 573d86e commit d7dbd9e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lint-markdown/action.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,18 @@ runs:
2525
repository: Consensys/docs-gha
2626
path: .docs-gha
2727

28+
- uses: tj-actions/changed-files@v45
29+
id: changed-files
30+
with:
31+
files: ${{ inputs.FILEPATHS }}
32+
separator: ','
33+
2834
- name: markdown lint
35+
if: ${{ steps.changed-files.outputs.all_changed_files != '' }}
2936
uses: DavidAnson/markdownlint-cli2-action@v17
3037
with:
3138
config: ${{ inputs.CONFIG_FILE }}
32-
globs: ${{ inputs.FILEPATHS }}
39+
globs: ${{ steps.changed-files.outputs.all_changed_files }}
3340
separator: ','
41+
# don't block the build - let it proceed
42+
#continue-on-error: true

0 commit comments

Comments
 (0)