From 573d86ec23af914c21d5cd481c6e1b0b5cb45a0d Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Fri, 13 Sep 2024 11:10:00 +1000 Subject: [PATCH] only examine modified md files --- lint-markdown/action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lint-markdown/action.yml b/lint-markdown/action.yml index ac1c01d..93b3478 100644 --- a/lint-markdown/action.yml +++ b/lint-markdown/action.yml @@ -25,9 +25,17 @@ 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 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