HTP; common_voice_privacy_notice.md/common_voice_terms.md #68
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: Docs Linter (l10n) | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.md' | |
- '**.json' | |
- '.github/workflows/doc_linter_l10n.yml' | |
# Ignore Markdown files in the root and in reference folder | |
- '!*.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 l10n | |
--exceptions .github/scripts/linter_exceptions.json |