Skip to content

Commit 7a51fb5

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

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

lint-markdown/action.yml

Lines changed: 10 additions & 1 deletion
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

spelling/styles/Microsoft/Acronyms.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ exceptions:
4343
- POST
4444
- RAM
4545
- REPL
46+
- REST
4647
- RSA
4748
- SCM
4849
- SCSS

spelling/styles/Microsoft/Contractions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ message: "Use '%s' instead of '%s'."
33
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-contractions
44
level: error
55
ignorecase: true
6+
ignore: ../config/vocabularies/Consensys-common/accept.txt
67
action:
78
name: replace
89
swap:

spelling/styles/Microsoft/Foreign.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extends: substitution
22
message: "Use '%s' instead of '%s'."
33
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words
44
ignorecase: true
5-
level: error
5+
level: warning
66
nonword: true
77
action:
88
name: replace

0 commit comments

Comments
 (0)