Skip to content

Commit 778aef9

Browse files
committed
Exclude *.vtt files from checks. Also improve documentation of vale.yml workflow.
1 parent 6265461 commit 778aef9

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/vale.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
paths:
88
- '**.asciidoc'
9+
- '**.md'
910
pull_request:
1011
branches:
1112
- main
@@ -20,7 +21,13 @@ jobs:
2021
- name: Vale Linting
2122
uses: errata-ai/vale-action@reviewdog
2223
with:
24+
# the folders to run the checks for
2325
files: '["docs/","introduction/", "trusted-committer/", "contributor/", "product-owner/", "project-leader/"]'
24-
vale_flags: '--glob=!{*/*/*,*/*-script.asciidoc}' # we want to check all files in the folders listed above, while excluding the subfolders (which contain the translations) and any '-script.asciidoc' files
25-
filter_mode: added # one of: added, diff_context, file, nofilter
26+
# we want to check all files in the folders listed above, but exclude
27+
# a) any files in subfolders (these are translationss)
28+
# b) any '-script.asciidoc' files
29+
# c) any '*.vtt' files
30+
vale_flags: '--glob=!{*/*/*,*/*-script.asciidoc,*/*.vtt}'
31+
# one of: added, diff_context, file, nofilter
32+
filter_mode: added
2633
debug: true

0 commit comments

Comments
 (0)