Skip to content

Commit da895e2

Browse files
committed
vale fix
1 parent 0f51191 commit da895e2

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/vale-tdbx.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,27 @@ jobs:
1515
- id: files
1616
uses: masesgroup/retrieve-changed-files@v2
1717
with:
18-
format: 'csv'
18+
format: "csv"
1919

2020
- name: checkout-latest-rules
2121
uses: actions/checkout@master
2222
with:
2323
repository: mongodb/mongodb-vale-action
24-
path: './tdbx-vale-rules'
24+
path: "./tdbx-vale-rules"
2525
token: ${{secrets.GITHUB_TOKEN}}
2626

2727
- name: move-files-for-vale-action
2828
run: |
29-
cp tdbx-vale-rules/.vale.ini .vale.ini
30-
mkdir -p .github/styles/
31-
cp -rf tdbx-vale-rules/.github/styles/ .github/
29+
cp tdbx-vale-rules/.vale.ini .vale.ini
30+
mkdir -p .github/styles/
31+
cp -rf tdbx-vale-rules/.github/styles/ .github/
3232
33-
- name: run-vale
33+
- if: steps.get_changed_files.outputs.all_changed_files != ''
3434
uses: errata-ai/vale-action@reviewdog
3535
with:
36-
reporter: github-pr-check
37-
files: ${{steps.files.outputs.added_modified}}
36+
files: ${{ steps.get_changed_files.outputs.all_changed_files }}
37+
separator: ","
38+
filter_mode: diff_context
39+
reporter: github-pr-review
3840
fail_on_error: true
39-
token: ${{secrets.GITHUB_TOKEN}}
41+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)