Skip to content

Commit

Permalink
Merge pull request #18 from Consensys/md-modified-files
Browse files Browse the repository at this point in the history
only examine modified md files
  • Loading branch information
joshuafernandes committed Sep 13, 2024
2 parents fa21842 + 573d86e commit d7dbd9e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lint-markdown/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d7dbd9e

Please sign in to comment.