Добавляет ответ на вопрос о разнице между git rebase
и git merge
…
#5175
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: [email protected] | |
commit_author: Doka Dog <[email protected]> |