0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-12-22 04:43:32 +01:00

Get glob input and pass through to command.

This commit is contained in:
David Anson 2021-01-12 22:25:46 -08:00
parent 5a103c42be
commit a0ebec2ad9
3 changed files with 14 additions and 4 deletions

View file

@ -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
View file

@ -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(

View file

@ -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(