diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49941b4..79294cd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,7 +58,7 @@ jobs: config/test.markdownlint.jsonc test/* command-config-invalid: - name: Command = config (invalid, fails) + name: Command = config (invalid configuration file, fails) runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index f10022d..219050f 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,26 @@ To lint specific Markdown files in a project: docs/*.md ``` +To fix supported issues when linting: + +```yaml +- uses: DavidAnson/markdownlint-cli2-action@v5 + with: + command: fix + globs: '**/*.md' +``` + +To specify a custom configuration file: + +```yaml +- uses: DavidAnson/markdownlint-cli2-action@v5 + with: + command: config + globs: | + config/custom.markdownlint.jsonc + **/*.md +``` + To prevent linting issues from failing the workflow run: ```yaml