File tree Expand file tree Collapse file tree 2 files changed +5
-20
lines changed
Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,17 @@ jobs:
2323
2424 # Step 2: Set up Ruby and install Asciidoctor.
2525 # Vale can use Asciidoctor to accurately parse .adoc files.
26- - name : Set up Ruby for Asciidoctor
27- uses : ruby/setup-ruby@v1
28- with :
29- ruby-version : ' 3.1' # Or a version compatible with your project
3026 - name : Install Asciidoctor
31- run : gem install asciidoctor
27+ run : sudo apt-get update && sudo apt-get install -y asciidoctor
3228
3329 # Step 3: Run the Vale GitHub Action.
3430 # This action automatically downloads Vale and runs it against your files.
3531 # It will use the configuration file (.vale.ini) from your repository.
3632 - name : Run Vale on AsciiDoc files
37- uses : errata-ai/vale-action@v2
33+ uses : errata-ai/vale-action@v2.1.1
3834 with :
3935 # Specify that Vale should only lint AsciiDoc files.
40- files : ' ["*.adoc"]'
36+ files : ' ["**/* .adoc"]'
4137
4238 # The action can post review comments directly on your pull requests.
4339 # This requires a GITHUB_TOKEN with appropriate permissions.
Original file line number Diff line number Diff line change @@ -9,18 +9,7 @@ StylesPath = styles
99
1010# You can list packages from the StylesPath here.
1111# For example, if you download and add the 'Microsoft' style:
12- Packages = write-good , Google
12+ Packages = Microsoft , Google
1313
14- # =========== Formats ===========
15- # This section maps file extensions to Vale's supported formats
16- # and tells Vale how to find the text.
17- [formats]
18- adoc = adoc
19-
20- # =========== Globs ===========
21- # This section defines which files to lint and how.
22- # It uses the formats defined above.
2314[*.adoc]
24- BasedOnStyles = Vale, write-good, Google
25- # Add any other styles you want to use, e.g., Vale, Microsoft
26- Format = adoc
15+ BasedOnStyles = Vale, Microsoft, Google
You can’t perform that action at this time.
0 commit comments