From 61ba1ef4f263fe40b6c2b4bc186f55738e344be0 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Mon, 1 Aug 2022 23:57:51 +0200 Subject: [PATCH] chore: fix vale workflow (#4892) * chore: fix vale workflow * chore: update contributors field * chore: do fail Co-authored-by: danez Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .github/workflows/vale.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index 62edab1d616..697460c5560 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [main] +permissions: + checks: write + jobs: lint-docs: runs-on: ubuntu-latest @@ -13,12 +16,16 @@ jobs: - name: Git checkout uses: actions/checkout@v3 + - name: Download styles + run: | + curl -s https://vale-library.netlify.app/styles.zip -o styles.zip + unzip styles.zip -d .github/styles + rm styles.zip + - name: Vale - uses: errata-ai/vale-action@v2.0.1 - continue-on-error: true + uses: errata-ai/vale-action@v2 with: - styles: https://vale-library.netlify.app/styles.zip files: '["docs", "src", "README.md", "CODE_OF_CONDUCT.md", "CONTRIBUTING.md"]' - onlyAnnotateModifiedLines: true + fail_on_error: true env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}