From 70c59c1e4ed8cecb27e7f0feff1b8cce36803d91 Mon Sep 17 00:00:00 2001 From: Mirjam Aulbach Date: Mon, 25 Sep 2023 16:42:13 +0200 Subject: [PATCH] Add workflow for vale Signed-off-by: Mirjam Aulbach --- .github/workflows/vale.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/vale.yaml diff --git a/.github/workflows/vale.yaml b/.github/workflows/vale.yaml new file mode 100644 index 00000000..f90096ae --- /dev/null +++ b/.github/workflows/vale.yaml @@ -0,0 +1,29 @@ +name: "Vale spelling and prose check" +on: + push: + branches: [ "main" ] + paths: + - "**.md" + pull_request: + branches: [ "main" ] + paths: + - "**.md" + +jobs: + spell-prose-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0 + with: + ref: ${{ github.ref }} + fetch-depth: 0 + + - name: Run vale + uses: errata-ai/vale-action@c4213d4de3d5f718b8497bd86161531c78992084 #v2.0.1 + with: + fail_on_error: true + vale_flags: "--minAlertLevel=error" + reporter: github-pr-check + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file