-
Notifications
You must be signed in to change notification settings - Fork 19
30 lines (26 loc) · 1.15 KB
/
vale-linter.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
name: Linting
on: [pull_request]
jobs:
prose:
# Trigger this job only if the pull request is from YiCAT English translation
if: startsWith(github.head_ref, 'l10n')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Vale
uses: errata-ai/[email protected]
with:
# Use the config that only lints markdown files for now
config: https://github.com/AgoraDoc/doc_source/blob/master/.vale-md.ini
# Only lint the modified files
# files: __onlyModified
# Only lint EN files
# files: en-US/
# Only lint modified lines
# Currently cannot be used together with the files setting
onlyAnnotateModifiedLines: true
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}