Closed l0kal closed 3 months ago
It should work if you pass the config file explicitly, like in this run. Note your zip file doesn't have the right structure for the latest Vale version. But passing the config before the sync makes sure the StylesPath
is recognized.
@CollierCZ, thank you for replying. I tried your suggestion and it seems it fixed the initial error. Now I have an issue with the package. As you pointed out, it is not in the correct format. I cannot find proper documentation on creating a correct style zip. Would you be able to tell me how my package is wrong or point me in the right direction?
My last GHA run:
/usr/bin/pip install docutils
Defaulting to user installation because normal site-packages is not writeable
Collecting docutils
Downloading docutils-0.21.2-py3-none-any.whl (587 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 587.4/587.4 KB 8.9 MB/s eta 0:00:00
Installing collected packages: docutils
Successfully installed docutils-0.21.2
/usr/bin/gem install asciidoctor --user-install
WARNING: You don't have /home/runner/.local/share/gem/ruby/3.0.0/bin in your PATH,
gem executables will not run.
Successfully installed asciidoctor-2.0.23
Parsing documentation for asciidoctor-2.0.23
Installing ri documentation for asciidoctor-2.0.23
Done installing documentation for asciidoctor after 1 seconds
1 gem installed
Installing Vale version 'latest' ...
/usr/bin/tar xz --overwrite --warning=no-unknown-keyword --overwrite -C /home/runner -f /home/runner/work/_temp/3f70ae9d-f099-4de0-af36-52c471a95de2
Installed version '3.6.0' into '/home/runner/vale'.
Installing ReviewDog version '0.[17](https://github.com/extenda/engineering-iam-common/actions/runs/9691950069/job/26744355743#step:3:18).0' ...
/usr/bin/tar xz --overwrite --warning=no-unknown-keyword --overwrite -C /home/runner -f /home/runner/work/_temp/b8dcd540-68b4-4e3b-b5fb-fd5d3726d076
Installed reviewdog from 'https://github.com/reviewdog/reviewdog/releases/download/v0.17.0/reviewdog_0.17.0_Linux_x86_64.tar.gz' into '/home/runner/reviewdog'.
/home/runner/vale --config=.vale.ini sync
25l
[0/1] ██████████████████████████████████████████████████████████████ 0% | 0s
Syncing Extenda [0/1] ███████████████████████████████████████████████ 0% | 0s
Syncing Extenda [1/1] ████████████████████████████████████████████████ 100% | 0s
Syncing Extenda [1/1] ████████████████████████████████████████████████ 100% | 0s[25](https://github.com/extenda/engineering-iam-common/actions/runs/9691950069/job/26744355743#step:3:26)h
SUCCESS Synced 1 package(s) to '.github/styles'.
Running vale with reviewdog 🐶 ...
/home/runner/vale --output=/home/runner/work/_actions/errata-ai/vale-action/reviewdog/lib/rdjsonl.tmpl --config=.vale.ini .
E100 [vocab] Runtime error
'config/vocabularies/Extenda' directory does not exist
Execution stopped with code 1.
/home/runner/reviewdog -f=rdjsonl -name=vale -reporter=github-pr-annotations -fail-on-error=true -filter-mode=added -level=info
reviewdog: this is not PullRequest build.```
The new format for vocabularies is documented here: https://vale.sh/docs/topics/vocab/#folder-structure
Instead of styles/Vocab/Extenda
, you need styles/config/vocabularies/Extenda
This fixed my issue. Thanks for the help @CollierCZ.
My .vale.ini:
My workflow:
My package: Extenda.zip
My workflow result:
It says the
.github/styles
directory does not exist, but it should not need to based on the documentation where it states that the styles folder should be put in the.gitignore
file. Runningvale sync
andvale .
works like a charm with the package. Any suggestions?