mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2024-11-21 13:51:28 +01:00
Update to version 18.0.0.
This commit is contained in:
parent
bd47e95879
commit
eb5ca3ab41
4 changed files with 10 additions and 10 deletions
2
.github/workflows/changed.yml
vendored
2
.github/workflows/changed.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
with:
|
||||
files: '**/*.md'
|
||||
separator: ","
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
if: steps.changed-files.outputs.any_changed == 'true'
|
||||
with:
|
||||
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
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
with:
|
||||
globs: |
|
||||
*.md
|
||||
|
|
14
README.md
14
README.md
|
@ -51,13 +51,13 @@ expressions.
|
|||
To lint Markdown files in the base directory of a project:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
```
|
||||
|
||||
To lint all Markdown files in a project:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
with:
|
||||
globs: '**/*.md'
|
||||
```
|
||||
|
@ -65,7 +65,7 @@ To lint all Markdown files in a project:
|
|||
To lint specific Markdown files in a project:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
with:
|
||||
globs: |
|
||||
README.md
|
||||
|
@ -76,7 +76,7 @@ To lint specific Markdown files in a project:
|
|||
To use a custom separator:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
with:
|
||||
globs: 'README.md,CHANGELOG.md,docs/*.md'
|
||||
separator: ','
|
||||
|
@ -85,7 +85,7 @@ To use a custom separator:
|
|||
To fix supported issues when linting:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
with:
|
||||
fix: true
|
||||
globs: '**/*.md'
|
||||
|
@ -94,7 +94,7 @@ To fix supported issues when linting:
|
|||
To specify a custom configuration file:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
with:
|
||||
config: 'config/custom.markdownlint.jsonc'
|
||||
globs: '**/*.md'
|
||||
|
@ -103,7 +103,7 @@ To specify a custom configuration file:
|
|||
To prevent linting issues from failing the workflow run:
|
||||
|
||||
```yaml
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v17
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v18
|
||||
continue-on-error: true
|
||||
```
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "markdownlint-cli2-action",
|
||||
"version": "17.0.0",
|
||||
"version": "18.0.0",
|
||||
"description": "A GitHub Action to run the markdownlint-cli2 tool for linting Markdown/CommonMark files with the markdownlint library",
|
||||
"author": {
|
||||
"name": "David Anson",
|
||||
|
|
Loading…
Reference in a new issue