From e41d870d45201c86b2396774b51f80a95b4a6956 Mon Sep 17 00:00:00 2001 From: Ian Maddaus Date: Wed, 23 Aug 2023 14:38:58 -0400 Subject: [PATCH] Update vale github action (#4164) * Update vale github action Signed-off-by: Ian Maddaus * only modified files Signed-off-by: Ian Maddaus * filter_mode Signed-off-by: Ian Maddaus * diff_context Signed-off-by: Ian Maddaus --------- Signed-off-by: Ian Maddaus --- .github/workflows/lint.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e7be263884..9d3046422a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -49,20 +49,11 @@ jobs: !content/resources/_index.md !content/habitat/ !infra_resources_readme.md - stylelint: + vale: + name: runner / vale runs-on: ubuntu-latest steps: - - name: "Download vale-chef" - uses: Legion2/download-release-action@v2.1.0 - with: - repository: chef/vale-chef - tag: 'v0.2.4' - path: tools/vale/chef - token: "${{ secrets.GITHUB_TOKEN }}" - - uses: errata-ai/vale-action@v1 + - uses: actions/checkout@v3 + - uses: errata-ai/vale-action@reviewdog with: - config: https://raw.githubusercontent.com/chef/chef-web-docs/main/.vale.ini - files: __onlyModified - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - + filter_mode: diff_context