forked from doka-guide/content
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1016 Bytes
/
frontmatter-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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]>