errata-ai / vale-action

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

Unable to locate executable file: gem #111

Open iptizer opened 11 months ago

iptizer commented 11 months ago

Last working date: 22. September 2023 First not working day: 27. September 2023

Error message as below.

Environment:

Details:

Run errata-ai/vale-action@reviewdog
  with:
    version: 2.29.6
    token: ***
    files: ["docs/concepts", "docs/how_tos", "docs/references/our_changelog.md", "docs/references/faq.md", "docs/references/glossary.md", "docs/support", "docs/tutorials", "docs/index.md", "docs/getting_started.md", "README.md", "internals.md"]
    filter_mode: added
    fail_on_error: true
    debug: false
    reporter: github-pr-check
    level: error
/usr/bin/pip install docutils
Collecting docutils
  Downloading docutils-0.20.1-py3-none-any.whl (572 kB)
Installing collected packages: docutils
Successfully installed docutils-0.20.1
Error: Error: Unable to locate executable file: gem. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
javierhf commented 10 months ago

I'm having the same issue. Apparently you have to add a step to the workflow to install Gems. Then add a gemfile to your repo. I haven't tried the last step yet.

jason-seqera commented 6 months ago

Specifically, this works:

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.3'

No Gemfile was required.

DanRoscigno commented 3 months ago

Specifically, this works:

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.3'

No Gemfile was required.

I had to add to the runner PATH:

- run: echo "/home/runner/.local/share/gem/ruby/3.3.0/bin" >> $GITHUB_PATH