0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-11-21 22:01:30 +01:00

Update documentation and example to reference @v7.

This commit is contained in:
David Anson 2022-08-13 17:32:14 -07:00
parent 2768abdb0a
commit a68af9a2a7
3 changed files with 8 additions and 8 deletions

View file

@ -12,7 +12,7 @@ jobs:
with: with:
files: '**/*.md' files: '**/*.md'
separator: "\n" separator: "\n"
- uses: DavidAnson/markdownlint-cli2-action@v6 - uses: DavidAnson/markdownlint-cli2-action@v7
if: steps.changed-files.outputs.any_changed == 'true' if: steps.changed-files.outputs.any_changed == 'true'
with: with:
globs: ${{ steps.changed-files.outputs.all_changed_files }} globs: ${{ steps.changed-files.outputs.all_changed_files }}

View file

@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: DavidAnson/markdownlint-cli2-action@v6 - uses: DavidAnson/markdownlint-cli2-action@v7
with: with:
globs: | globs: |
*.md *.md

View file

@ -45,13 +45,13 @@ For more detail: [glob syntax in `markdownlint-cli2`][glob-syntax].
To lint Markdown files in the base directory of a project: To lint Markdown files in the base directory of a project:
```yaml ```yaml
- uses: DavidAnson/markdownlint-cli2-action@v6 - uses: DavidAnson/markdownlint-cli2-action@v7
``` ```
To lint all Markdown files in a project: To lint all Markdown files in a project:
```yaml ```yaml
- uses: DavidAnson/markdownlint-cli2-action@v6 - uses: DavidAnson/markdownlint-cli2-action@v7
with: with:
globs: '**/*.md' globs: '**/*.md'
``` ```
@ -59,7 +59,7 @@ To lint all Markdown files in a project:
To lint specific Markdown files in a project: To lint specific Markdown files in a project:
```yaml ```yaml
- uses: DavidAnson/markdownlint-cli2-action@v6 - uses: DavidAnson/markdownlint-cli2-action@v7
with: with:
globs: | globs: |
README.md README.md
@ -70,7 +70,7 @@ To lint specific Markdown files in a project:
To fix supported issues when linting: To fix supported issues when linting:
```yaml ```yaml
- uses: DavidAnson/markdownlint-cli2-action@v6 - uses: DavidAnson/markdownlint-cli2-action@v7
with: with:
command: fix command: fix
globs: '**/*.md' globs: '**/*.md'
@ -79,7 +79,7 @@ To fix supported issues when linting:
To specify a custom configuration file: To specify a custom configuration file:
```yaml ```yaml
- uses: DavidAnson/markdownlint-cli2-action@v6 - uses: DavidAnson/markdownlint-cli2-action@v7
with: with:
command: config command: config
globs: | globs: |
@ -90,7 +90,7 @@ To specify a custom configuration file:
To prevent linting issues from failing the workflow run: To prevent linting issues from failing the workflow run:
```yaml ```yaml
- uses: DavidAnson/markdownlint-cli2-action@v6 - uses: DavidAnson/markdownlint-cli2-action@v7
continue-on-error: true continue-on-error: true
``` ```