From 847ee944a600a2feffd46682676d2401b216eb98 Mon Sep 17 00:00:00 2001 From: Ruth Cheesley Date: Fri, 25 Oct 2024 18:58:47 +0100 Subject: [PATCH] Fix the Vale linter (#162) --- .../vocabularies}/Decidim/accept.txt | 0 .../vocabularies}/Decidim/reject.txt | 0 .github/workflows/vale_linting.yml | 29 ++++++++++++------- 3 files changed, 18 insertions(+), 11 deletions(-) rename .github/styles/{Vocab => config/vocabularies}/Decidim/accept.txt (100%) rename .github/styles/{Vocab => config/vocabularies}/Decidim/reject.txt (100%) diff --git a/.github/styles/Vocab/Decidim/accept.txt b/.github/styles/config/vocabularies/Decidim/accept.txt similarity index 100% rename from .github/styles/Vocab/Decidim/accept.txt rename to .github/styles/config/vocabularies/Decidim/accept.txt diff --git a/.github/styles/Vocab/Decidim/reject.txt b/.github/styles/config/vocabularies/Decidim/reject.txt similarity index 100% rename from .github/styles/Vocab/Decidim/reject.txt rename to .github/styles/config/vocabularies/Decidim/reject.txt diff --git a/.github/workflows/vale_linting.yml b/.github/workflows/vale_linting.yml index 38d94be2b4..6425727eb1 100644 --- a/.github/workflows/vale_linting.yml +++ b/.github/workflows/vale_linting.yml @@ -5,16 +5,23 @@ on: jobs: prose: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - - name: Vale - uses: errata-ai/vale-action@reviewdog - with: - version: 2.20.2 - files: docs/en - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install Asciidoctor + run: sudo apt-get install -y asciidoctor + + - name: Vale + uses: errata-ai/vale-action@reviewdog + with: + version: 3.7.1 + files: docs/en + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}