mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2024-11-21 22:01:30 +01:00
Update to version 14.0.0.
This commit is contained in:
parent
fa0be7308f
commit
455b6612a7
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:
|
with:
|
||||||
files: '**/*.md'
|
files: '**/*.md'
|
||||||
separator: ","
|
separator: ","
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
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@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
with:
|
with:
|
||||||
globs: |
|
globs: |
|
||||||
*.md
|
*.md
|
||||||
|
|
14
README.md
14
README.md
|
@ -51,13 +51,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@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
```
|
```
|
||||||
|
|
||||||
To lint all Markdown files in a project:
|
To lint all Markdown files in a project:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
with:
|
with:
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
```
|
```
|
||||||
|
@ -65,7 +65,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@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
with:
|
with:
|
||||||
globs: |
|
globs: |
|
||||||
README.md
|
README.md
|
||||||
|
@ -76,7 +76,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@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
with:
|
with:
|
||||||
globs: 'README.md,CHANGELOG.md,docs/*.md'
|
globs: 'README.md,CHANGELOG.md,docs/*.md'
|
||||||
separator: ','
|
separator: ','
|
||||||
|
@ -85,7 +85,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@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
with:
|
with:
|
||||||
fix: true
|
fix: true
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
@ -94,7 +94,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@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
with:
|
with:
|
||||||
config: 'config/custom.markdownlint.jsonc'
|
config: 'config/custom.markdownlint.jsonc'
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
@ -103,7 +103,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@v13
|
- uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "markdownlint-cli2-action",
|
"name": "markdownlint-cli2-action",
|
||||||
"version": "13.0.0",
|
"version": "14.0.0",
|
||||||
"description": "A GitHub Action to run the markdownlint-cli2 tool for linting Markdown/CommonMark files with the markdownlint library",
|
"description": "A GitHub Action to run the markdownlint-cli2 tool for linting Markdown/CommonMark files with the markdownlint library",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "David Anson",
|
"name": "David Anson",
|
||||||
|
|
Loading…
Reference in a new issue