From b0205444d69bc80a839de3653e69df01ea253270 Mon Sep 17 00:00:00 2001 From: Franz <1286618+fjp@users.noreply.github.com> Date: Tue, 30 Aug 2022 23:14:12 +0200 Subject: [PATCH 1/6] Create .vale.ini --- .vale.ini | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .vale.ini diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 00000000..0922530c --- /dev/null +++ b/.vale.ini @@ -0,0 +1,9 @@ +StylesPath = styles + +MinAlertLevel = suggestion +Vocab = Base + +Packages = Google, proselint, write-good, alex, Readability, Joblint + +[*] +BasedOnStyles = Vale, Google, proselint, write-good, alex, Readability, Joblint From 26e9f88b0bf6dbd423c81d51fd6a947874d48e2a Mon Sep 17 00:00:00 2001 From: Franz <1286618+fjp@users.noreply.github.com> Date: Tue, 30 Aug 2022 23:37:12 +0200 Subject: [PATCH 2/6] Update lint.yml Update vale options --- .github/workflows/lint.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b932375f..8eb384f7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,6 +27,11 @@ jobs: - name: Run Vale uses: errata-ai/vale-action@reviewdog + with: + debug: true + # github-pr-check, github-pr-review, github-check + reporter: github-pr-check + vale_flags: "--glob='*.{txt,md}'" env: # Required, set by GitHub actions automatically: # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret From 8b59e525c79940dda8718d96b8bb984e2940400f Mon Sep 17 00:00:00 2001 From: Franz <1286618+fjp@users.noreply.github.com> Date: Tue, 30 Aug 2022 23:43:25 +0200 Subject: [PATCH 3/6] Update lint.yml nofilter --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8eb384f7..b79a2c10 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,6 +31,8 @@ jobs: debug: true # github-pr-check, github-pr-review, github-check reporter: github-pr-check + # added, diff_context, file, nofilter + filter_mode: nofilter vale_flags: "--glob='*.{txt,md}'" env: # Required, set by GitHub actions automatically: From a3aae3003856179b8c9edfe08511c7ad2a688dc5 Mon Sep 17 00:00:00 2001 From: Franz <1286618+fjp@users.noreply.github.com> Date: Thu, 1 Sep 2022 11:36:13 +0200 Subject: [PATCH 4/6] Create vale.yml Test using jdkato/vale docker image --- .github/workflows/vale.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 00000000..41b4fbbc --- /dev/null +++ b/.github/workflows/vale.yml @@ -0,0 +1,38 @@ +# This is a basic workflow to help you get started with Actions + +name: Vale-Container + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + vale-container: + # The type of runner that the job will run on + runs-on: ubuntu-latest + container: + image: jdkato/vale + volumes: + - $(pwd)/styles:/styles + - $(pwd)/docs:/docs + options: --cpus 1 + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + - name: Run Vale + run: vale --glob='*.{txt,md}' . + env: + # Required, set by GitHub actions automatically: + # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} From 9004d17f315c3aea672e9cabb3e078db8eb91f9c Mon Sep 17 00:00:00 2001 From: Franz <1286618+fjp@users.noreply.github.com> Date: Thu, 1 Sep 2022 11:39:54 +0200 Subject: [PATCH 5/6] Update vale.yml --- .github/workflows/vale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index 41b4fbbc..eec0ce90 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -22,8 +22,8 @@ jobs: container: image: jdkato/vale volumes: - - $(pwd)/styles:/styles - - $(pwd)/docs:/docs + - styles:/styles + - docs:/docs options: --cpus 1 # Steps represent a sequence of tasks that will be executed as part of the job steps: From b23346f6320dc29276e3af7e89a30a9edc255b75 Mon Sep 17 00:00:00 2001 From: Franz <1286618+fjp@users.noreply.github.com> Date: Thu, 1 Sep 2022 11:42:04 +0200 Subject: [PATCH 6/6] Update vale.yml --- .github/workflows/vale.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index eec0ce90..6430a07f 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -31,7 +31,9 @@ jobs: - uses: actions/checkout@v3 - name: Run Vale - run: vale --glob='*.{txt,md}' . + run: | + vale sync + vale --glob='*.{txt,md}' . env: # Required, set by GitHub actions automatically: # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret