Skip to content

Commit

Permalink
Expose --ignore-path option
Browse files Browse the repository at this point in the history
  • Loading branch information
nosborn committed Dec 20, 2021
1 parent 4af041e commit 2b55d8f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ jobs:
rules: examples/rules/custom.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ./
with:
config_file: .markdownlintrc
files: .
ignore_path: examples/.markdownlintignore
rules: examples/rules/custom.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/.markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
examples/ignore/*

0 comments on commit 2b55d8f

Please sign in to comment.