From e2489cdd7e3c9ceae63bb92c6b39a4fc3542a537 Mon Sep 17 00:00:00 2001 From: Nick Osborn Date: Mon, 20 Dec 2021 12:25:00 +0800 Subject: [PATCH] Expose --ignore-path option --- action.yml | 3 +++ entrypoint.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/action.yml b/action.yml index fc43ac4..668b685 100644 --- a/action.yml +++ b/action.yml @@ -13,6 +13,9 @@ inputs: ignore_files: description: files to ignore/exclude required: false + ignore_path: + description: path to file with ignore pattern(s) + required: false rules: description: custom rule files required: false diff --git a/entrypoint.sh b/entrypoint.sh index a5e5431..6902a4c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,6 +3,7 @@ MARKDOWNLINT=markdownlint MARKDOWNLINT="${MARKDOWNLINT}${INPUT_CONFIG_FILE:+ -c ${INPUT_CONFIG_FILE}}" MARKDOWNLINT="${MARKDOWNLINT}${INPUT_IGNORE_FILES:+ -i ${INPUT_IGNORE_FILES}}" +MARKDOWNLINT="${MARKDOWNLINT}${INPUT_IGNORE_PATH:+ -p ${INPUT_IGNORE_PATH}}" MARKDOWNLINT="${MARKDOWNLINT}${INPUT_RULES:+ -r ${INPUT_RULES}}" # shellcheck disable=SC2086