23 lines
555 B
YAML
23 lines
555 B
YAML
![]() |
name: Format Document
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
paths: ['*.md']
|
||
|
pull_request:
|
||
|
types: [opened, synchronize, reopened]
|
||
|
paths: ['*.md']
|
||
|
|
||
|
jobs:
|
||
|
format:
|
||
|
runs-on: ubuntu-latest
|
||
|
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Format
|
||
|
run: python3 .github/format.py content/zh-cn
|
||
|
- uses: EndBug/add-and-commit@v7
|
||
|
with:
|
||
|
author_name: mtfwikibot
|
||
|
author_email: bot@mtf.wiki
|
||
|
message: 'ci: format docs'
|