mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2024-11-24 15:16:26 +01:00
Get glob input and pass through to command.
This commit is contained in:
parent
5a103c42be
commit
a0ebec2ad9
3 changed files with 14 additions and 4 deletions
10
README.md
10
README.md
|
@ -4,9 +4,15 @@ A GitHub Action to run the markdownlint-cli2 tool for linting Markdown/CommonMar
|
|||
|
||||
## Inputs
|
||||
|
||||
### glob
|
||||
### glob (optional)
|
||||
|
||||
...
|
||||
Glob expression of files to lint
|
||||
|
||||
Default: `*.{md,markdown}`
|
||||
|
||||
## Outputs
|
||||
|
||||
[None]
|
||||
|
||||
## Example
|
||||
|
||||
|
|
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -16,8 +16,10 @@ const { "main": markdownlintCli2 } = __nccwpck_require__(9202);
|
|||
|
||||
const logMessage = core.info;
|
||||
const logError = core.error;
|
||||
const glob = core.getInput("glob");
|
||||
|
||||
markdownlintCli2({
|
||||
"argv": [],
|
||||
"argv": [ glob ],
|
||||
logMessage,
|
||||
logError
|
||||
}).then(
|
||||
|
|
|
@ -8,8 +8,10 @@ const { "main": markdownlintCli2 } = require("markdownlint-cli2");
|
|||
|
||||
const logMessage = core.info;
|
||||
const logError = core.error;
|
||||
const glob = core.getInput("glob");
|
||||
|
||||
markdownlintCli2({
|
||||
"argv": [],
|
||||
"argv": [ glob ],
|
||||
logMessage,
|
||||
logError
|
||||
}).then(
|
||||
|
|
Loading…
Reference in a new issue