errata-ai / vale-action

:octocat: The official GitHub Action for Vale -- install, manage, and run Vale with ease.
MIT License
202 stars 51 forks source link

asciidoctor not found #138

Closed dunyakirkali closed 2 weeks ago

dunyakirkali commented 2 weeks ago

I have the following vale config

StylesPath = .github/styles

MinAlertLevel = error

Packages = Google, proselint, write-good, Readability, AsciiDoc
Vocab = incremental_forgetting

[asciidoctor]
experimental = YES

[*]
BasedOnStyles = Vale, Google, proselint, write-good, Readability, AsciiDoc

Google.Quotes = NO

And this is the pipeline:

name: Continuous Integration

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Vale
        uses: errata-ai/vale-action@reviewdog
        with:
          files: source/
          fail_on_error: true

And I get the following error:

Running vale...
  /home/runner/vale --output=/home/runner/work/_actions/errata-ai/vale-action/reviewdog/lib/rdjsonl.tmpl .
  E100 [lintAdoc] Runtime error

  asciidoctor not found

  Execution stopped with code 1.
Error: Vale and reviewdog exited with status code: 2

Any clues to what I might be doing wrong?

jdkato commented 2 weeks ago

In the latest release of the action, you need to install format-specific dependencies on your own. See the updated README for an example.

If you'd like to use an older version of the action or opt-in to changes like this in the future, you can pin the action to a specific release.

dunyakirkali commented 2 weeks ago

@jdkato I had missed this change.

Thnx for the info 👍🏼