mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2026-06-30 23:19:41 +02:00
Get glob input and pass through to command.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Vendored
+3
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user