Добавить про спецификаторы форматирования в console.log
(#5598)
#5238
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: | |
push: | |
branches: | |
- main | |
jobs: | |
frontmatter-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- 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: hi@doka.guide | |
commit_author: Doka Dog <hi@doka.guide> |