diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 523c50c5..3899c5be 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -1,7 +1,5 @@ name: Linting on: - # Note: onlyAnnotateModifiedLines only works correctly on PRs! - # If you need to run checks on push as well, create a separate workflow file. pull_request: jobs: @@ -14,12 +12,10 @@ jobs: fetch-depth: 0 - name: Vale - uses: errata-ai/vale-action@master + uses: errata-ai/vale-action@reviewdog with: - # We can modify these styles as we want - styles: | - https://github.com/errata-ai/Google/releases/latest/download/Google.zip - onlyAnnotateModifiedLines: true + # Please keep version in sync with the version in .gitpod.Dockerfile for a consistent experience + version: 2.20.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 5d4224ea..fcd2e0dc 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -1,6 +1,7 @@ FROM python:3.10 # Don't update to a higher version until this issue has been fixed: https://github.com/errata-ai/vale/issues/528 +# Please keep version in sync with the version in .github/workflows/linting.yml for a consistent experience ENV VALE_VERSION=2.20.2 WORKDIR /workspace