mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-12-18 03:04:23 +08:00
27
.github/workflows/textlint.yml
vendored
Normal file
27
.github/workflows/textlint.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Textlint
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 */6 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-fix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository_owner == 'Anduin2017'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
cache: 'npm'
|
||||||
|
- run: npm install
|
||||||
|
- run: ./node_modules/.bin/textlint . --fix
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: '[ci skip] Automatic textlint fixes'
|
||||||
|
branch: 'master'
|
||||||
|
file_pattern: ':/*.md'
|
||||||
|
commit_user_name: github-actions[bot]
|
||||||
|
commit_user_email: github-actions[bot]@users.noreply.github.com
|
||||||
|
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
||||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Dependency directories
|
||||||
|
node_modules/
|
||||||
3760
package-lock.json
generated
Normal file
3760
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
6
package.json
Normal file
6
package.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"textlint": "^12.1.0",
|
||||||
|
"textlint-rule-ja-space-between-half-and-full-width": "^2.2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user