Frontmatter Lint #3813
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: Frontmatter Lint | |
on: | |
workflow_run: | |
workflows: | |
- "YaSpeller All" | |
branches: | |
- main | |
types: | |
- completed | |
jobs: | |
frontmatter-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Проверка линтером меты в main | |
run: | | |
echo "Проверка для всех файлов" | |
npx yaml-cat --format json --output result.json a11y/**/index.md css/**/index.md html/**/index.md js/**/index.md recipes/**/index.md tools/**/index.md | |
node .github/scripts/frontmatter.js --fix | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Сортирует мету в материалах | |
file_pattern: (a11y|css|html|js|recipes|tools)/**/index.md | |
commit_user_name: Doka Dog | |
commit_user_email: [email protected] | |
commit_author: Doka Dog <[email protected]> |