Skip to content

Commit

Permalink
build: have vale lint only run on affected files
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen committed Jan 14, 2023
1 parent 56ded36 commit 296532e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- id: files
uses: jitterbit/get-changed-files@v1
with:
format: 'json'
- name: Vale Linter
continue-on-error: true
uses: errata-ai/vale-action@reviewdog
with:
fail_on_error: false
vale_flags: "--no-exit --config=docs/.vale/vale.ini"
filter_mode: diff_context
files: docs/src/main/asciidoc/
files: ${{ steps.files.outputs.added_modified }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/doc-contribute-docs-howto.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ As you make changes, you can rebuild the `docs` module specifically to update th
----
./mvnw -f docs clean install
----

[NOTE]
====
When updating extension configuration:
Expand Down

0 comments on commit 296532e

Please sign in to comment.