mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2024-11-25 07:36:22 +01:00
Update documentation and examples to reference @v13.
This commit is contained in:
parent
88364f7452
commit
ed4dec634f
3 changed files with 9 additions and 9 deletions
2
.github/workflows/changed.yml
vendored
2
.github/workflows/changed.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
files: '**/*.md'
|
files: '**/*.md'
|
||||||
separator: ","
|
separator: ","
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
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 }}
|
||||||
|
|
2
.github/workflows/example.yml
vendored
2
.github/workflows/example.yml
vendored
|
@ -5,7 +5,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
with:
|
with:
|
||||||
globs: |
|
globs: |
|
||||||
*.md
|
*.md
|
||||||
|
|
14
README.md
14
README.md
|
@ -67,13 +67,13 @@ expressions.
|
||||||
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@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
```
|
```
|
||||||
|
|
||||||
To lint all Markdown files in a project:
|
To lint all Markdown files in a project:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
with:
|
with:
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
```
|
```
|
||||||
|
@ -81,7 +81,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@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
with:
|
with:
|
||||||
globs: |
|
globs: |
|
||||||
README.md
|
README.md
|
||||||
|
@ -92,7 +92,7 @@ To lint specific Markdown files in a project:
|
||||||
To use a custom separator:
|
To use a custom separator:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
with:
|
with:
|
||||||
globs: 'README.md,CHANGELOG.md,docs/*.md'
|
globs: 'README.md,CHANGELOG.md,docs/*.md'
|
||||||
separator: ','
|
separator: ','
|
||||||
|
@ -101,7 +101,7 @@ To use a custom separator:
|
||||||
To fix supported issues when linting:
|
To fix supported issues when linting:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
with:
|
with:
|
||||||
fix: true
|
fix: true
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
@ -110,7 +110,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@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
with:
|
with:
|
||||||
config: 'config/custom.markdownlint.jsonc'
|
config: 'config/custom.markdownlint.jsonc'
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
@ -119,7 +119,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@v12
|
- uses: DavidAnson/markdownlint-cli2-action@v13
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue