diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index bad1eb18c..ec3c4da5d 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -15,7 +15,18 @@ jobs: - name: Install Asciidoctor run: sudo apt-get install -y asciidoctor - - name: Run Vale + - name: Vale Style Check + uses: errata-ai/vale-action@reviewdog + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + fail_on_error: false + reporter: github-pr-check + filter_mode: added + files: latest/ug + continue-on-error: true + + - name: Enforce AWS Brand uses: errata-ai/vale-action@reviewdog env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} @@ -24,4 +35,5 @@ jobs: reporter: github-pr-check filter_mode: added files: latest/ug - continue-on-error: false \ No newline at end of file + vale_flags: "--config brand.vale.ini" + continue-on-error: true \ No newline at end of file diff --git a/brand.vale.ini b/brand.vale.ini new file mode 100644 index 000000000..b005e14b3 --- /dev/null +++ b/brand.vale.ini @@ -0,0 +1,14 @@ +StylesPath = vale/styles + +MinAlertLevel = error + +# Packages = RedHat, AsciiDoc + +#Vocab = EksDocsVocab + +# Ignore files in dirs starting with `.` to avoid raising errors for `.vale/fixtures/*/testinvalid.adoc` files +[[!.]*.adoc] +BasedOnStyles = EksDocs +EksDocs.ExternalDomains = OFF + +