Repository navigation
ZCNA: перерегистрация членов семьи при смене кода ZUS #668
Workflow file for this run
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
| name: Lint markdown | |
| on: | |
| pull_request: | |
| paths: | |
| - "**.md" | |
| - ".github/workflows/markdown_linter_rules.yml" | |
| - ".github/workflows/markdown_linter_checks.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| markdown-lint: | |
| name: Lint repository | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.3" | |
| bundler-cache: true | |
| - name: Install markdownlint | |
| run: gem install mdl | |
| - name: Run markdown-linter | |
| run: mdl -s .github/workflows/markdown_linter_rules.rb docs/. | |
| - name: Check image alt texts | |
| run: | | |
| if grep -rEn '!\[\]|!\[[0-9]+\]|!\[[^]]*\.(png|jpe?g|gif|webp)\]' docs --include='*.md'; then | |
| echo "::error::Найдены картинки с пустым или бесполезным alt-текстом — опишите, что на скриншоте (см. CONTRIBUTING.md, раздел «Скриншоты»)" | |
| exit 1 | |
| fi |