Check AsciiDoc with vale #18
This file contains hidden or 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
| # .github/workflows/vale.yml | |
| name: Check AsciiDoc with vale | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'posts/**/*.adoc' | |
| pull_request: | |
| paths: | |
| - 'posts/**/*.adoc' | |
| jobs: | |
| vale: | |
| name: Vale Lint Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install Asciidoctor | |
| run: sudo apt-get install -y asciidoctor | |
| - name: Run Vale on AsciiDoc files | |
| uses: errata-ai/vale-action@v2 | |
| with: | |
| files: posts | |
| filter_mode: nofilter | |
| vale_flags: "--glob=*.adoc" | |
| reporter: github-check | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |