Skip to content

HTP; common_voice_privacy_notice.md/common_voice_terms.md (#2158) #122

HTP; common_voice_privacy_notice.md/common_voice_terms.md (#2158)

HTP; common_voice_privacy_notice.md/common_voice_terms.md (#2158) #122

name: Docs Linter (reference)
on:
push:
branches:
- main
paths:
- '**.md'
- '**.json'
- '.github/workflows/doc_linter_ref.yml'
# Ignore Markdown files in the root
- '!*.md'
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
fetch:
name: Lint documents
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
pip install -r .github/requirements.txt
- name: Run linter
run: >
python .github/scripts/lint_documents.py
--path .
--ref en
--type ref
--exceptions .github/scripts/linter_exceptions.json