diff --git a/lint-markdown/action.yml b/lint-markdown/action.yml index ac1c01d..9ca94af 100644 --- a/lint-markdown/action.yml +++ b/lint-markdown/action.yml @@ -25,9 +25,18 @@ runs: repository: Consensys/docs-gha path: .docs-gha + - uses: tj-actions/changed-files@v45 + id: changed-files + with: + files: ${{ inputs.FILEPATHS }} + separator: ',' + - name: markdown lint + if: ${{ steps.changed-files.outputs.all_changed_files != '' }} uses: DavidAnson/markdownlint-cli2-action@v17 with: config: ${{ inputs.CONFIG_FILE }} - globs: ${{ inputs.FILEPATHS }} + globs: ${{ steps.changed-files.outputs.all_changed_files }} separator: ',' + # don't block the build - let it proceed + #continue-on-error: true diff --git a/spelling/styles/Microsoft/Acronyms.yml b/spelling/styles/Microsoft/Acronyms.yml index 308ff7c..bfd983f 100644 --- a/spelling/styles/Microsoft/Acronyms.yml +++ b/spelling/styles/Microsoft/Acronyms.yml @@ -43,6 +43,7 @@ exceptions: - POST - RAM - REPL + - REST - RSA - SCM - SCSS diff --git a/spelling/styles/Microsoft/Contractions.yml b/spelling/styles/Microsoft/Contractions.yml index 8c81dcb..25d8f83 100644 --- a/spelling/styles/Microsoft/Contractions.yml +++ b/spelling/styles/Microsoft/Contractions.yml @@ -3,6 +3,7 @@ message: "Use '%s' instead of '%s'." link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-contractions level: error ignorecase: true +ignore: ../config/vocabularies/Consensys-common/accept.txt action: name: replace swap: diff --git a/spelling/styles/Microsoft/Foreign.yml b/spelling/styles/Microsoft/Foreign.yml index 0d3d600..67794a3 100644 --- a/spelling/styles/Microsoft/Foreign.yml +++ b/spelling/styles/Microsoft/Foreign.yml @@ -2,7 +2,7 @@ extends: substitution message: "Use '%s' instead of '%s'." link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words ignorecase: true -level: error +level: warning nonword: true action: name: replace