Add "separator" input to enable using something other than "\n" for the globs input (fixes #58).

This commit is contained in:
David Anson
2022-11-30 03:29:42 +00:00
parent ee28a92f8a
commit 9085e7e0dc
6 changed files with 42 additions and 4 deletions
+2 -1
View File
@@ -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: ","
+13
View File
@@ -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