Semi-automatic update of generated content #1272
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vale | |
on: | |
- pull_request | |
jobs: | |
vale: | |
name: vale | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Execute Vale | |
run: | | |
wget -q https://github.com/errata-ai/vale/releases/download/v3.4.1/vale_3.4.1_Linux_64-bit.tar.gz | |
mkdir bin && tar -xvzf vale_3.4.1_Linux_64-bit.tar.gz -C bin | |
ls -la bin | |
bin/vale --config=./.vale.ini \ | |
--glob '!{src/content/vintage/**,src/content/changes/**}' \ | |
--no-exit \ | |
--output ./.vale/styles/rdjsonl.tmpl \ | |
src/content > out.jsonl | |
- name: Install reviewdog | |
uses: reviewdog/action-setup@3f401fe1d58fe77e10d665ab713057375e39b887 # v1.3.0 | |
with: | |
reviewdog_version: latest | |
- name: Create annotations on touched files | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
reviewdog -f=rdjsonl -name=Vale -reporter=github-pr-annotations -fail-on-error=true -filter-mode=added -level=info < out.jsonl |