@@ -5,19 +5,31 @@ author: Nick Osborn
55description : Style checker and lint tool for Markdown/CommonMark files.
66
77inputs :
8- cli_version :
8+ cli-version :
99 description : version of markdownlint-cli to use
1010 required : true
1111 default : latest
12+ config :
13+ description : configuration file (JSON or YAML)
14+ required : false
1215 config_file :
1316 description : configuration file (JSON or YAML)
1417 required : false
18+ deprecationMessage : Please use 'config' instead.
1519 files :
1620 description : files, directories, or globs
1721 required : true
22+ ignore :
23+ description : files to ignore/exclude
24+ required : false
25+ ignore-path :
26+ description : path to file with ignore pattern(s)
27+ required : false
28+ deprecationMessage : Please use 'ignore-path' instead.
1829 ignore_files :
1930 description : files to ignore/exclude
2031 required : false
32+ deprecationMessage : Please use 'ignore' instead.
2133 ignore_path :
2234 description : path to file with ignore pattern(s)
2335 required : false
3951
4052 markdownlint="${prefix}/bin/markdownlint"
4153 markdownlint="${markdownlint}${INPUT_CONFIG_FILE:+ -c ${INPUT_CONFIG_FILE:?}}"
42- markdownlint="${markdownlint}${INPUT_IGNORE_FILES :+ -i ${INPUT_IGNORE_FILES :?}}"
54+ markdownlint="${markdownlint}${INPUT_IGNORE :+ -i ${INPUT_IGNORE :?}}"
4355 markdownlint="${markdownlint}${INPUT_IGNORE_PATH:+ -p ${INPUT_IGNORE_PATH:?}}"
4456 markdownlint="${markdownlint}${INPUT_RULES:+ -r ${INPUT_RULES:?}}"
4557
@@ -51,11 +63,11 @@ runs:
5163 exit ${rc:-0}
5264 shell: bash
5365 env:
54- INPUT_CLI_VERSION: ${{ inputs.cli_version }}
55- INPUT_CONFIG_FILE: ${{ inputs.config_file }}
66+ INPUT_CLI_VERSION: ${{ inputs.cli-version }}
67+ INPUT_CONFIG_FILE: ${{ inputs.config || inputs. config_file }}
5668 INPUT_FILES: ${{ inputs.files }}
57- INPUT_IGNORE_FILES : ${{ inputs.ignore_files }}
58- INPUT_IGNORE_PATH: ${{ inputs.ignore_path }}
69+ INPUT_IGNORE : ${{ inputs.ignore || inputs.ignore_files }}
70+ INPUT_IGNORE_PATH: ${{ inputs.ignore-path || inputs. ignore_path }}
5971 INPUT_RULES: ${{ inputs.rules }}
6072
6173branding :
0 commit comments