mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2026-06-30 23:19:41 +02:00
Add "separator" input to enable using something other than "\n" for the globs input (fixes #58).
This commit is contained in:
@@ -11,8 +11,9 @@ jobs:
|
||||
id: changed-files
|
||||
with:
|
||||
files: '**/*.md'
|
||||
separator: "\n"
|
||||
separator: ","
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v7
|
||||
if: steps.changed-files.outputs.any_changed == 'true'
|
||||
with:
|
||||
globs: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
separator: ","
|
||||
|
||||
@@ -54,6 +54,19 @@ jobs:
|
||||
id: test
|
||||
- run: exit 1
|
||||
if: steps.test.outcome != 'failure'
|
||||
separator:
|
||||
name: Separator (README.md and test/errors.md, 3 errors)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./
|
||||
with:
|
||||
globs: '*.md,test/*'
|
||||
separator: ','
|
||||
continue-on-error: true
|
||||
id: test
|
||||
- run: exit 1
|
||||
if: steps.test.outcome != 'failure'
|
||||
command-config:
|
||||
name: Command = config (test/errors.md, 2 errors)
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user