Article : QChat #185
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: "✅ Markdown header check" | |
on: | |
pull_request: | |
paths: | |
- "content/articles/**/*.md" | |
jobs: | |
header-check: | |
name: "👓 Vérification du header markdown de l'article" | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'articles') | |
steps: | |
- name: "Fetch source code" | |
uses: actions/checkout@v4 | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
cache: "pip" | |
python-version: 3.11 | |
- name: "Install requirements" | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python -m pip install -U -r requirements.txt | |
- name: "Check markdown headers using CLI" | |
run: | | |
geotribu header-check content/articles/202*/*.md --authors-folder content/team -maxw 1000 -v |