-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.04 KB
/
run-textlint.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
32
33
34
35
36
37
name: run-textlint
on:
pull_request_target:
types: [opened, synchronize]
paths: ['docs/**/*.md']
jobs:
run-textlint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
checks: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install textlint
run: |
npm install
- name: textlint-github-pr-review
uses: tsuyoshicho/action-textlint@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
level: warning
textlint_flags: "docs/**/*.md"
textlint_config: ".textlintrc"
- name: Run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat .textlint.log | reviewdog -f=checkstyle -name="textlint" -reporter="github-pr-review"