mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2026-06-30 23:19:41 +02:00
Update documentation and examples to reference @v9.
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
||||
with:
|
||||
files: '**/*.md'
|
||||
separator: ","
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
if: steps.changed-files.outputs.any_changed == 'true'
|
||||
with:
|
||||
globs: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
|
||||
@@ -5,7 +5,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
with:
|
||||
globs: |
|
||||
*.md
|
||||
|
||||
@@ -52,13 +52,13 @@ expressions.
|
||||
To lint Markdown files in the base directory of a project:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
```
|
||||
|
||||
To lint all Markdown files in a project:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
with:
|
||||
globs: '**/*.md'
|
||||
```
|
||||
@@ -66,7 +66,7 @@ To lint all Markdown files in a project:
|
||||
To lint specific Markdown files in a project:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
with:
|
||||
globs: |
|
||||
README.md
|
||||
@@ -77,7 +77,7 @@ To lint specific Markdown files in a project:
|
||||
To use a custom separator:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
with:
|
||||
globs: 'README.md,CHANGELOG.md,docs/*.md'
|
||||
separator: ','
|
||||
@@ -86,7 +86,7 @@ To use a custom separator:
|
||||
To fix supported issues when linting:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
with:
|
||||
command: fix
|
||||
globs: '**/*.md'
|
||||
@@ -95,7 +95,7 @@ To fix supported issues when linting:
|
||||
To specify a custom configuration file:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
with:
|
||||
command: config
|
||||
globs: |
|
||||
@@ -106,7 +106,7 @@ To specify a custom configuration file:
|
||||
To prevent linting issues from failing the workflow run:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v8
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v9
|
||||
continue-on-error: true
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user