From 83113c5641e6d1f0c2da4203f52a179e12e5512f Mon Sep 17 00:00:00 2001 From: Lorenzo Salvadore Date: Mon, 9 Oct 2023 20:26:51 +0000 Subject: [PATCH] GitHub actions: Lint files with vale Add a GitHub action that runs vale on all added or modified files of a pull request. --- .github/workflows/vale.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/vale.yml diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml new file mode 100644 index 000000000000..32e375e458c7 --- /dev/null +++ b/.github/workflows/vale.yml @@ -0,0 +1,14 @@ +name: reviewdog +on: [pull_request] + +jobs: + vale: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: jitterbit/get-changed-files@v1 + with: + format: "json" + - uses: errata-ai/vale-action@reviewdog + with: + files: ${{ steps.files.outputs.added_modified }}